{"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": "محرر الذكاء الاصطناعي", "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": "معرف المستخدم", "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` | أيوه | معرف المستخدم |\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 المعرف](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 المعرف](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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "معرف البوت", "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` | أيوه | معرف البوت |\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": "معرف الموضوع الفريد"}, "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` | لأ | معرف الموضوع الفريد |\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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "الأكثر استخدامًا [تطبيقات Mini Bot الرئيسية](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` | لأ | الأكثر استخدامًا [تطبيقات Mini Bot الرئيسية](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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "أرسل رسالة [الكيانات](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>` | لأ | أرسل رسالة [الكيانات](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": "معرف الدردشة", "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` | أيوه | معرف الدردشة |\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": "معرف الدردشة", "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` | أيوه | معرف الدردشة |\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": "معرف الدردشة", "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` | أيوه | معرف الدردشة |\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": "معرف الدردشة", "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` | أيوه | معرف الدردشة |\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": "معرف المستخدم"}, "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`، راجع [ويكيبيديا](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)"}}, "additionalProperties": false, "required": ["user_id", "random_id", "g_a"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | أيوه | معرف المستخدم |\n| `random_id` | `int` | أيوه | 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`، راجع [ويكيبيديا](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": "معرف الرسالة"}, "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>` | أيوه | معرف الرسالة |\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": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](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` | لأ | [معرف مجلد النظير، لمزيد من المعلومات انقر هنا](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": "نوع التمثيل الصامت"}}, "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` | أيوه | نوع التمثيل الصامت |"}, "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": "معرف الرسالة"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | أيوه | Peer where the media was sent |\n| `id` | `int` | أيوه | معرف الرسالة |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "MESSAGE_AUTHOR_REQUIRED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4255550774"}}, "/catalog/messages.editMessage": {"post": {"operationId": "messages.editMessage", "tags": ["الرسايل"], "summary": "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": "معرف الاستعلام", "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 للفتح"}, "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` | أيوه | معرف الاستعلام |\n| `message` | `string` | لأ | Popup to show |\n| `url` | `string` | لأ | URL للفتح |\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": "أرسل رسالة [الكيانات](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>` | لأ | أرسل رسالة [الكيانات](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": "معرف المستخدم"}, "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` | أيوه | معرف المستخدم |\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": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](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` | أيوه | [معرف مجلد النظير، لمزيد من المعلومات انقر هنا](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": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders)"}}, "additionalProperties": false, "required": ["folder_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `folder_id` | `int` | أيوه | [معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders) |"}, "x-telegram-rpc-errors": ["FOLDER_ID_INVALID"], "x-browser-schema-id": "3602468338"}}, "/catalog/messages.setBotShippingResults": {"post": {"operationId": "messages.setBotShippingResults", "tags": ["الرسايل"], "summary": "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": "معرف الرسالة"}, "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` | أيوه | معرف الرسالة |\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)"}, "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) |\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": "معرف الرسالة"}, "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` | أيوه | معرف الرسالة |\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": "معرف الرسالة"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | أيوه | [Channel ID](https://core.telegram.org/api/channel.md) |\n| `msg_id` | `int` | أيوه | معرف الرسالة |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID", "TOPIC_ID_INVALID"], "x-browser-schema-id": "1147761405"}}, "/catalog/messages.readDiscussion": {"post": {"operationId": "messages.readDiscussion", "tags": ["الرسايل"], "summary": "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": "معرف الدردشة", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | أيوه | معرف الدردشة |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1540419152"}}, "/catalog/messages.deletePhoneCallHistory": {"post": {"operationId": "messages.deletePhoneCallHistory", "tags": ["الرسايل"], "summary": "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": "معرف الرسالة"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | أيوه | Dialog |\n| `msg_id` | `int` | أيوه | معرف الرسالة |"}, "x-telegram-rpc-errors": ["CHAT_TOO_BIG", "MSG_ID_INVALID", "MSG_TOO_OLD", "PEER_ID_INVALID"], "x-browser-schema-id": "834782287"}}, "/catalog/messages.getSearchResultsCalendar": {"post": {"operationId": "messages.getSearchResultsCalendar", "tags": ["الرسايل"], "summary": "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": "معرف الرسالة"}, "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` | أيوه | معرف الرسالة |\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": "معرف البوت"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | أيوه | معرف البوت |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1998676370"}}, "/catalog/messages.toggleBotInAttachMenu": {"post": {"operationId": "messages.toggleBotInAttachMenu", "tags": ["الرسايل"], "summary": "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": "معرف البوت"}, "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` | أيوه | معرف البوت |\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": "معرف الرسالة"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف النسخ", "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` | أيوه | معرف الرسالة |\n| `transcription_id` | `long` | أيوه | معرف النسخ |\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": "معرف الرسالة"}, "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` | أيوه | معرف الرسالة |\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": "معرف الرسالة"}, "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` | أيوه | معرف الرسالة |\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": "معرف الرسالة"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | أيوه | Peer where the message was sent. |\n| `msg_id` | `int` | أيوه | معرف الرسالة |"}, "x-telegram-rpc-errors": ["CHAT_ACTION_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "3520762892"}}, "/catalog/messages.getFactCheck": {"post": {"operationId": "messages.getFactCheck", "tags": ["الرسايل"], "summary": "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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`."}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "oneOf": [{"$ref": "#/components/schemas/videoSize"}, {"$ref": "#/components/schemas/videoSizeEmojiMarkup"}, {"$ref": "#/components/schemas/videoSizeStickerMarkup"}], "description": "يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md).", "x-tl-flag": "flags.4?VideoSize"}}, "additionalProperties": false}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `fallback` | `true` | لأ | 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` | لأ | النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`. |\n| `video_emoji_markup` | `VideoSize` | لأ | يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md). |"}, "x-telegram-rpc-errors": ["ALBUM_PHOTOS_TOO_MANY", "BOT_INVALID", "EMOJI_MARKUP_INVALID", "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", "PHOTO_CROP_FILE_MISSING", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID", "PHOTO_FILE_MISSING", "PHOTO_INVALID", "STICKER_MIME_INVALID", "VIDEO_FILE_INVALID"], "x-browser-schema-id": "59286453"}}, "/catalog/photos.deletePhotos": {"post": {"operationId": "photos.deletePhotos", "tags": ["الصور"], "summary": "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": "معرف المستخدم"}, "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` | أيوه | معرف المستخدم |\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": "النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`."}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "oneOf": [{"$ref": "#/components/schemas/videoSize"}, {"$ref": "#/components/schemas/videoSizeEmojiMarkup"}, {"$ref": "#/components/schemas/videoSizeStickerMarkup"}], "description": "يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md).", "x-tl-flag": "flags.5?VideoSize"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `suggest` | `true` | لأ | 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` | لأ | النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`. |\n| `video_emoji_markup` | `VideoSize` | لأ | يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md). |"}, "x-telegram-rpc-errors": ["CONTACT_MISSING", "NEED_ACTION_MISSING", "USER_ID_INVALID"], "x-browser-schema-id": "3779873393"}}, "/catalog/upload.saveFilePart": {"post": {"operationId": "upload.saveFilePart", "tags": ["الملفات"], "summary": "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": "معرف ملف عشوائي، تم إنشاؤه بواسطة العميل", "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` | أيوه | معرف ملف عشوائي، تم إنشاؤه بواسطة العميل |\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": "معرف المستخدم"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | أيوه | معرف المستخدم |"}, "x-telegram-rpc-errors": ["USER_INVALID"], "x-browser-schema-id": "59377875"}}, "/catalog/help.editUserInfo": {"post": {"operationId": "help.editUserInfo", "tags": ["الإعدادات والمساعدة"], "summary": "الاستخدام الداخلي", "description": "الاستخدام الداخلي\n\n**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": "معرف الرسالة"}}, "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` | أيوه | معرف الرسالة |"}, "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. البطاقة بتعرض وسائط 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": "معرف المستخدم"}, "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` | أيوه | معرف المستخدم |\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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "معرف النموذج", "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` | أيوه | معرف النموذج |\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": "معرف المعاملة."}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | أيوه | User to refund. |\n| `charge_id` | `string` | أيوه | معرف المعاملة. |"}, "x-telegram-rpc-errors": ["CHARGE_ALREADY_REFUNDED", "CHARGE_ID_EMPTY", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "632196938"}}, "/catalog/payments.getStarsRevenueStats": {"post": {"operationId": "payments.getStarsRevenueStats", "tags": ["المدفوعات"], "summary": "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": "قم بتعيين هذه العلامة للاحتفاظ بنص الهدية الأصلي والمرسل والمتلقي في الهدية التي تمت ترقيتها كسمة [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)."}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "The gift to upgrade"}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `keep_original_details` | `true` | لأ | قم بتعيين هذه العلامة للاحتفاظ بنص الهدية الأصلي والمرسل والمتلقي في الهدية التي تمت ترقيتها كسمة [starGiftAttributeOriginalDetails](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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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": "معرف القناة"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `dark` | `true` | لأ | Whether to enable dark theme for graph colors |\n| `channel` | `InputChannel` | أيوه | معرف القناة |\n| `msg_id` | `int` | أيوه | معرف الرسالة |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3068175349"}}, "/catalog/stats.getStoryStats": {"post": {"operationId": "stats.getStoryStats", "tags": ["الإحصائيات"], "summary": "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": "معرف القصة"}}, "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` | أيوه | معرف القصة |"}, "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": "معرف المجلد"}, "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` | أيوه | معرف المجلد |\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": "معرف المجلد"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | أيوه | معرف المجلد |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "4257011476"}}, "/catalog/chatlists.leaveChatlist": {"post": {"operationId": "chatlists.leaveChatlist", "tags": ["مجلدات الشات"], "summary": "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": "معرف المجلد"}, "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` | أيوه | معرف المجلد |\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": "معرف القصة"}, "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` | أيوه | معرف القصة |\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": "معرف القصة"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | أيوه | النظير حيث تم نشر القصة |\n| `id` | `int` | أيوه | معرف القصة |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_EMPTY", "USER_PUBLIC_MISSING"], "x-browser-schema-id": "2072899360"}}, "/catalog/stories.report": {"post": {"operationId": "stories.report", "tags": ["القصص"], "summary": "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": "معرف الألبوم."}, "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` | أيوه | معرف الألبوم. |\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": "معرف الوظيفة"}}, "additionalProperties": false, "required": ["job_id"]}}}, "description": "| الاسم | النوع | مطلوب | الوصف |\n| --- | --- | --- | --- |\n| `job_id` | `string` | أيوه | معرف الوظيفة |"}, "x-telegram-rpc-errors": ["SMSJOB_ID_INVALID"], "x-browser-schema-id": "2005766191"}}, "/catalog/smsjobs.finishJob": {"post": {"operationId": "smsjobs.finishJob", "tags": ["SMS"], "summary": "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": ["محرر الذكاء الاصطناعي"], "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": "[معرف الرموز التعبيرية المخصص](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` | أيوه | [معرف الرموز التعبيرية المخصص](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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "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": ["محرر الذكاء الاصطناعي"], "summary": "aicompose.setChatStyle", "description": "طريقة في واجهة عميل Telegram. البطاقة بتعرض وسائط TL والرد.\n\nما لقيناش صفحة رسمية للطريقة دي في وثائق Telegram.", "x-tl-method": "aicompose.setChatStyle", "x-tl-id": "1570322880", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "MTProto 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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. البطاقة بتعرض وسائط 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** القيمة من منشئ [القناة](https://core.telegram.org/constructor/channel.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputPeerUserFromMessage": {"title": "inputPeerUserFromMessage", "description": "يحدد المستخدم [min](https://core.telegram.org/api/min.md) الذي تمت رؤيته في رسالة معينة لدردشة معينة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الدردشة التي تمت رؤية المستخدم فيها", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم الذي تمت رؤيته", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "user_id"], "additionalProperties": false}, "inputPeerChannelFromMessage": {"title": "inputPeerChannelFromMessage", "description": "يحدد قناة [min](https://core.telegram.org/api/min.md) التي تمت مشاهدتها في رسالة معينة لدردشة معينة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الدردشة التي شوهدت فيها رسالة القناة", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف القناة التي تمت مشاهدتها", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "channel_id"], "additionalProperties": false}, "inputUserEmpty": {"title": "inputUserEmpty", "description": "مُنشئ فارغ، لا يحدد المستخدم.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputUserSelf": {"title": "inputUserSelf", "description": "يحدد المستخدم الحالي.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputUser": {"title": "inputUser", "description": "يحدد المستخدم لمزيد من التفاعل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** القيمة من مُنشئ [user](https://core.telegram.org/constructor/user.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "access_hash"], "additionalProperties": false}, "inputUserFromMessage": {"title": "inputUserFromMessage", "description": "يحدد المستخدم [min](https://core.telegram.org/api/min.md) الذي تمت رؤيته في رسالة معينة لدردشة معينة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الدردشة التي تمت رؤية المستخدم فيها", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم الذي تمت رؤيته", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "user_id"], "additionalProperties": false}, "inputPhoneContact": {"title": "inputPhoneContact", "description": "اتصال هاتفي.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "عدد صحيح عشوائي 64 بت: يجب ضبطه، على سبيل المثال، على رقم تزايدي عند استخدام [contacts.importContacts](https://core.telegram.org/method/contacts.importContacts.md)، من أجل إعادة محاولة استيراد جهات الاتصال التي لم يتم استيرادها بنجاح فقط، وفقًا لـ client_ids الذي تم إرجاعه في [contacts.importedContacts](https://core.telegram.org/constructor/contacts.importedContacts.md).`retry_contacts`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "phone": {"type": "string", "x-tl-type": "string", "description": "رقم الهاتف", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "الاسم الأول لجهة الاتصال", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "الاسم الأخير لجهة الاتصال", "x-telegram-field-docs": true}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "ملاحظة خاصة لجهة الاتصال هذه، مرئية لنا فقط؛ انظر [هنا »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) لمزيد من المعلومات حول ملاحظات جهات الاتصال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "client_id", "phone", "first_name", "last_name"], "additionalProperties": false}, "inputFile": {"title": "inputFile", "description": "تعريف الملف المحفوظ على أجزاء باستخدام الطريقة [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ملف عشوائي تم إنشاؤه بواسطة العميل", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الأجزاء المحفوظة", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "الاسم الكامل للملف", "x-telegram-field-docs": true}, "md5_checksum": {"type": "string", "x-tl-type": "string", "description": "في حالة تمرير الملف [md5-hash](https://en.wikipedia.org/wiki/MD5#MD5_hashes)، سيتم فحص محتويات الملف قبل الاستخدام", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "name", "md5_checksum"], "additionalProperties": false}, "inputFileBig": {"title": "inputFileBig", "description": "يعين ملفًا كبيرًا (يزيد حجمه عن 10 ميغابايت)، يتم حفظه جزئيًا باستخدام الطريقة [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileBig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileBig"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ملف عشوائي، تم إنشاؤه بواسطة العميل", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الأجزاء المحفوظة", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "اسم الملف الكامل", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "name"], "additionalProperties": false}, "inputFileStoryDocument": {"title": "inputFileStoryDocument", "description": "يُستخدم لـ [تحرير الصورة المصغرة/المعاينة الثابتة للقصة، انظر هنا »](https://core.telegram.org/api/stories.md#editing-stories) لمزيد من المعلومات حول التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileStoryDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileStoryDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "فيديو القصة القديمة.", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaEmpty": {"title": "inputMediaEmpty", "description": "محتوى الوسائط الفارغ للرسالة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMediaUploadedPhoto": {"title": "inputMediaUploadedPhoto", "description": "الصورة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaUploadedPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي إخفاء هذه الوسائط خلف تحذير المفسد", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كانت هذه صورة حية، i.e. صورة ثابتة مقترنة بالمقطع القصير `video` الذي تم التقاطه بجانبها", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "ال [الملف المرفوع](https://core.telegram.org/api/files.md)", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "TL 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": "معرف المكان في قاعدة بيانات المزود", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "نوع المكان في قاعدة بيانات الموفر", "x-telegram-field-docs": true}}, "required": ["_", "geo_point", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputMediaPhotoExternal": {"title": "inputMediaPhotoExternal", "description": "الصورة الجديدة التي سيتم رفعها بواسطة الخادم باستخدام URL المحدد", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPhotoExternal"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPhotoExternal"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي إخفاء هذه الوسائط خلف تحذير المفسد", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL من الصورة", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن أن يكون الوقت اللازم لبقاء صورة التدمير الذاتي `0` لتعطيل التدمير الذاتي، `0x7FFFFFFF` لتدمير الصورة ذاتيًا فور تشغيلها؛ وإلا فإنها تدمر نفسها `ttl_seconds` بعد تشغيلها.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaDocumentExternal": {"title": "inputMediaDocumentExternal", "description": "المستند الذي سيتم تنزيله بواسطة خوادم التليجرام", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDocumentExternal"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDocumentExternal"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي إخفاء هذه الوسائط خلف تحذير المفسد", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL من الوثيقة", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن أن يكون وقت بقاء مستند التدمير الذاتي `0` لتعطيل التدمير الذاتي، `0x7FFFFFFF` لتدمير المستند ذاتيًا فور تشغيله؛ وإلا فإنها تدمر نفسها `ttl_seconds` بعد تشغيلها.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "غلاف فيديو مخصص.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ابدأ تشغيل الفيديو عند الطابع الزمني المحدد (بالثواني).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaGame": {"title": "inputMediaGame", "description": "لعبة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGame"]}, "id": {"type": "object", "x-tl-type": "InputGame", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGameID", "inputGameShortName"]}}, "description": "اللعبة إلى الأمام", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaInvoice": {"title": "inputMediaInvoice", "description": "فاتورة تم إنشاؤها لـ [دفعة بوت](https://core.telegram.org/bots/payments.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaInvoice"]}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم المنتج، 1-32 حرفًا", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "وصف المنتج، 1-255 حرفًا", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "URL صورة المنتج للفاتورة. يمكن أن تكون صورة للسلعة أو صورة تسويقية لخدمة ما. الناس يحبون ذلك بشكل أفضل عندما يرون ما يدفعون مقابله.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputWebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "الفاتورة الفعلية", "x-telegram-field-docs": true}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "حمولة الفاتورة المحددة بواسطة الروبوت، 1-128 بايت. لن يتم عرض هذا للمستخدم، استخدمه لعملياتك الداخلية.", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "الرمز المميز لموفر الدفعات، الذي تم الحصول عليه عبر [Botfather](https://t.me/botfather)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "provider_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "JSON- ​​بيانات مشفرة عن الفاتورة، والتي سيتم مشاركتها مع مزود الدفع. يجب أن يقدم مزود الدفع وصفًا تفصيليًا للحقول المطلوبة.", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "فريدة من نوعها [الروابط العميقة لبوت تبدأ بمعلمة](https://core.telegram.org/api/links.md#bot-links). إذا كانت موجودة، فستحتوي النسخ المعاد توجيهها من الرسالة المرسلة على زر URL مع [رابط عميق](https://core.telegram.org/api/links.md#bot-links) للروبوت (بدلاً من زر الدفع)، مع استخدام القيمة كمعلمة البداية. في حالة غيابها، ستحتوي النسخ المعاد توجيهها من الرسالة المرسلة على زر دفع، مما يسمح لعدة مستخدمين بالدفع مباشرة من الرسالة المعاد توجيهها، باستخدام نفس الفاتورة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "extended_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "مهمل", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "title", "description", "invoice", "payload", "provider_data"], "additionalProperties": false}, "inputMediaGeoLive": {"title": "inputMediaGeoLive", "description": "[تحديد الموقع الجغرافي المباشر](https://core.telegram.org/api/live-location.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGeoLive"]}, "stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان قد تم إيقاف إرسال تحديد الموقع الجغرافي", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "تحديد الموقع الجغرافي الحالي", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة إلى [المواقع المباشرة](https://core.telegram.org/api/live-location.md)، الاتجاه الذي يتحرك فيه الموقع، بالدرجات؛ 1-360.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "فترة صلاحية الموقع الحالي", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة إلى [المواقع المباشرة](https://core.telegram.org/api/live-location.md)، الحد الأقصى للمسافة إلى عضو دردشة آخر لتنبيهات القرب، بالأمتار (0-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": "مؤشرات مبنية على 0 للإجابات الصحيحة في المتجه `answers` (لاستطلاعات الرأي الخاصة بالاختبار)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<int>"}, "attached_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "مرفق وسائط اختياري لعرضه بجانب الاستطلاع", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputMedia"}, "solution": {"type": "string", "x-tl-type": "string", "description": "النص الذي يظهر عندما يختار المستخدم إجابة غير صحيحة أو ينقر على أيقونة المصباح في استطلاع على شكل اختبار، ويتكون من 0-200 حرف مع خلاصتين من الأسطر على الأكثر.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "solution_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[كيانات الرسائل النصية المنمقة](https://core.telegram.org/api/entities.md) للشرح `solution`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "solution_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "مرفق وسائط اختياري يظهر بجانب شرح حل الاختبار", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "poll"], "additionalProperties": false}, "inputMediaDice": {"title": "inputMediaDice", "description": "أرسل [ملصقًا متحركًا يعتمد على النرد](https://core.telegram.org/api/dice.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية مدعومة حاليًا 🏀 و 🎲 و 🎯", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputMediaStory": {"title": "inputMediaStory", "description": "قصة منقولة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "النظير حيث تم نشر القصة", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف القصة", "x-telegram-field-docs": true}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "inputMediaWebPage": {"title": "inputMediaWebPage", "description": "يحدد الخيارات التي سيتم استخدامها لإنشاء معاينة الرابط للتسمية التوضيحية، أو حتى معاينة الرابط المستقل بدون رسالة مرفقة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaWebPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWebPage"]}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يحدد أنه يجب استخدام معاينة وسائط كبيرة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يحدد أنه يجب استخدام معاينة صغيرة للوسائط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا **لم** تم التعيين، فسيتم إصدار خطأ `WEBPAGE_NOT_FOUND` RPC إذا تعذر إنشاء معاينة صفحة الويب للـ `url` المحدد؛ وإلا فلن يتم إصدار أي خطأ (ما لم تكن الرسالة المقدمة فارغة أيضًا، وفي هذه الحالة سيتم إصدار `MESSAGE_EMPTY` بدلاً من ذلك).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL لاستخدامه في معاينة الرابط.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaPaidMedia": {"title": "inputMediaPaidMedia", "description": "[الوسائط المدفوعة، انظر هنا »](https://core.telegram.org/api/paid-media.md) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPaidMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPaidMedia"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر الوسائط في [نجوم التليجرام](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": "ينشئ [قائمة المهام »](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaTodo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaTodo"]}, "todo": {"type": "object", "x-tl-type": "TodoList", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoList"]}}, "description": "قائمة المهام.", "x-telegram-field-docs": true}}, "required": ["_", "todo"], "additionalProperties": false}, "inputMediaStakeDice": {"title": "inputMediaStakeDice", "description": "وسائل الإعلام لعبة النرد.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStakeDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStakeDice"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "تجزئة اللعبة.", "x-telegram-field-docs": true}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "المبلغ.", "x-tl-type": "long", "x-telegram-field-docs": true}, "client_seed": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "بذرة العميل.", "x-telegram-field-docs": true}}, "required": ["_", "game_hash", "ton_amount", "client_seed"], "additionalProperties": false}, "inputMediaWidget": {"title": "inputMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidget"]}, "allow_queries": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shared_widget": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "html": {"type": "string", "x-tl-type": "string"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}}, "required": ["_", "width", "height", "html"], "additionalProperties": false}, "inputMediaWidgetId": {"title": "inputMediaWidgetId", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidgetId"]}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "widget_id"], "additionalProperties": false}, "inputChatPhotoEmpty": {"title": "inputChatPhotoEmpty", "description": "منشئ فارغ، قم بإزالة صورة المجموعة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatUploadedPhoto": {"title": "inputChatUploadedPhoto", "description": "سيتم تعيين صورة جديدة كصورة الملف الشخصي للمجموعة.\n\nالأعلام `file` و`video` و`video_emoji_markup` متنافية.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatUploadedPhoto"]}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "تم حفظ الملف على أجزاء باستخدام الطريقة [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputFile"}, "video": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "فيديو مربع لصورة الملف الشخصي المتحركة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "النقطة العائمة UNIX الطابع الزمني بالثواني، تشير إلى إطار الفيديو/الملصق الذي يجب استخدامه كمعاينة ثابتة؛ لا يمكن استخدامه إلا إذا تم ضبط `video` أو `video_emoji_markup`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?double"}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "يجب أن تحتوي الصورة الشخصية للملصقات المتحركة على مُنشئ [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) أو مُنشئ [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?VideoSize"}}, "required": ["_"], "additionalProperties": false}, "inputChatPhoto": {"title": "inputChatPhoto", "description": "سيتم تعيين الصورة الموجودة كصورة ملف شخصي للدردشة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "الصورة الموجودة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputGeoPointEmpty": {"title": "inputGeoPointEmpty", "description": "مُنشئ GeoPoint فارغ.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPointEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputGeoPoint": {"title": "inputGeoPoint", "description": "يحدد GeoPoint بإحداثياته.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPoint"]}, "lat": {"type": "number", "format": "double", "x-tl-type": "double", "description": "خط العرض", "x-telegram-field-docs": true}, "long": {"type": "number", "format": "double", "x-tl-type": "double", "description": "خط الطول", "x-telegram-field-docs": true}, "accuracy_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الدقة الأفقية المقدرة للموقع، بالأمتار؛ كما هو محدد من قبل المرسل.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "lat", "long"], "additionalProperties": false}, "inputPhotoEmpty": {"title": "inputPhotoEmpty", "description": "منشئ فارغ.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPhoto": {"title": "inputPhoto", "description": "يحدد الصورة لمزيد من التفاعل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoto"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الصورة", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** القيمة من مُنشئ [الصورة](https://core.telegram.org/constructor/photo.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "inputFileLocation": {"title": "inputFileLocation", "description": "DEPRECATED موقع الصورة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileLocation"]}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "حجم الخادم", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الملف", "x-telegram-field-docs": true}, "secret": {"type": "string", "pattern": "^-?\\d+$", "description": "تحقق من المبلغ للوصول إلى الملف", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "volume_id", "local_id", "secret", "file_reference"], "additionalProperties": false}, "inputEncryptedFileLocation": {"title": "inputEncryptedFileLocation", "description": "موقع ملف الدردشة السري المشفر.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الملف، **id** قيمة المعلمة من [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "المجموع الاختباري، **access_hash** قيمة المعلمة من [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputDocumentFileLocation": {"title": "inputDocumentFileLocation", "description": "موقع المستند (الفيديو، الصوت، الصوت، بشكل أساسي كل نوع باستثناء الصورة)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستند", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** المعلمة من مُنشئ [document](https://core.telegram.org/constructor/document.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "thumb_size": {"type": "string", "x-tl-type": "string", "description": "حجم الصورة المصغرة لتحميل الصورة المصغرة", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputSecureFileLocation": {"title": "inputSecureFileLocation", "description": "موقع البرقية المشفرة [ملف جواز السفر](https://core.telegram.org/passport.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSecureFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الملف، قيمة المعلمة **id** من [secureFile](https://core.telegram.org/constructor/secureFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "المجموع الاختباري، **access_hash** قيمة المعلمة من [secureFile](https://core.telegram.org/constructor/secureFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputTakeoutFileLocation": {"title": "inputTakeoutFileLocation", "description": "يُستخدم لتنزيل ملف JSON الذي سيحتوي على جميع البيانات الشخصية المتعلقة بالميزات التي ليس لديها [طريقة إخراج](https://core.telegram.org/api/takeout.md) متخصصة حتى الآن، راجع [هنا »](https://core.telegram.org/api/takeout.md) لمزيد من المعلومات حول الإخراج API.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTakeoutFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTakeoutFileLocation"]}}, "required": ["_"], "additionalProperties": false}, "inputPhotoFileLocation": {"title": "inputPhotoFileLocation", "description": "استخدم هذا الكائن لتنزيل صورة باستخدام طريقة [upload.getFile](https://core.telegram.org/method/upload.getFile.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الصورة، الذي تم الحصول عليه من كائن [photo](https://core.telegram.org/constructor/photo.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تم الحصول على تجزئة الوصول للصورة من كائن [photo](https://core.telegram.org/constructor/photo.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "thumb_size": {"type": "string", "x-tl-type": "string", "description": "يجب ضبط [PhotoSize](https://core.telegram.org/type/PhotoSize.md) للتنزيل: على الحقل `type` لكائن PhotoSize المطلوب في [photo](https://core.telegram.org/constructor/photo.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputPhotoLegacyFileLocation": {"title": "inputPhotoLegacyFileLocation", "description": "DEPRECATED موقع ملف الصور القديم", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoLegacyFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoLegacyFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الصورة", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "مرجع الملف", "x-telegram-field-docs": true}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الحجم", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الهوية المحلية", "x-telegram-field-docs": true}, "secret": {"type": "string", "pattern": "^-?\\d+$", "description": "سر", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "volume_id", "local_id", "secret"], "additionalProperties": false}, "inputPeerPhotoFileLocation": {"title": "inputPeerPhotoFileLocation", "description": "موقع صورة الملف الشخصي للقناة/المجموعة/المجموعة الفائقة/المستخدم", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerPhotoFileLocation"]}, "big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تنزيل النسخة عالية الجودة من الصورة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "النظير الذي يجب تنزيل صورة ملفه الشخصي", "x-telegram-field-docs": true}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الصورة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "photo_id"], "additionalProperties": false}, "inputStickerSetThumb": {"title": "inputStickerSetThumb", "description": "موقع الصورة المصغرة لمجموعة الملصقات (انظر [الملفات](https://core.telegram.org/api/files.md))", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetThumb"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetThumb"]}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "مجموعة الملصقات", "x-telegram-field-docs": true}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "نسخة مصغرة", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "thumb_version"], "additionalProperties": false}, "inputGroupCallStream": {"title": "inputGroupCallStream", "description": "يحدد جزءًا من الوسائط لمحادثة فيديو أو بث مباشر أو قصة مباشرة ذات وضع RTMP، راجع [تشغيل RTMP بث مباشر »](https://core.telegram.org/api/group-calls.md#downloading-media-chunks).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallStream"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "RTMP-وضع المكالمة الجماعية", "x-telegram-field-docs": true}, "time_ms": {"type": "string", "pattern": "^-?\\d+$", "description": "الطابع الزمني للقطعة المراد جلبها، بالمللي ثانية", "x-tl-type": "long", "x-telegram-field-docs": true}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يحدد مدة مقطع الوسائط المراد جلبه بالمللي ثانية، عن طريق التحويل الجزئي `1000` إلى اليمين `scale` مرات: `duration_ms := 1000 >> scale`", "x-telegram-field-docs": true}, "video_channel": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[groupCallStreamChannel](https://core.telegram.org/constructor/groupCallStreamChannel.md).`channel` قيمة قناة الفيديو المراد جلبها؛ الفيديو الموحد يستخدم القناة `1`. حذف مع `video_quality` لجلب الصوت", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video_quality": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "جودة الفيديو المحددة (0 = الأدنى، 1 = متوسط، 2 = الأفضل)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "call", "time_ms", "scale"], "additionalProperties": false}, "peerUser": {"title": "peerUser", "description": "شريك الدردشة", "externalDocs": {"url": "https://core.telegram.org/constructor/peerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id"], "additionalProperties": false}, "peerChat": {"title": "peerChat", "description": "المجموعة.", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المجموعة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id"], "additionalProperties": false}, "peerChannel": {"title": "peerChannel", "description": "القناة/المجموعة الفائقة", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف القناة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id"], "additionalProperties": false}, "storage.fileUnknown": {"title": "storage.fileUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePartial": {"title": "storage.filePartial", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePartial"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileJpeg": {"title": "storage.fileJpeg", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileJpeg"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileGif": {"title": "storage.fileGif", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileGif"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePng": {"title": "storage.filePng", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePng"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePdf": {"title": "storage.filePdf", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePdf"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp3": {"title": "storage.fileMp3", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp3"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMov": {"title": "storage.fileMov", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMov"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp4": {"title": "storage.fileMp4", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp4"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileWebp": {"title": "storage.fileWebp", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileWebp"]}}, "required": ["_"], "additionalProperties": false}, "userEmpty": {"title": "userEmpty", "description": "مُنشئ فارغ، مستخدم غير موجود.", "externalDocs": {"url": "https://core.telegram.org/constructor/userEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["userEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم أو `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "user": {"title": "user", "description": "يشير إلى معلومات حول مستخدم معين.\n\nما لم يُنص على خلاف ذلك، عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، تتمتع جميع الحقول من المنشئ المستلم حديثًا بالأولوية على المنشئ القديم المخزن مؤقتًا محليًا (بما في ذلك عن طريق إزالة الحقول التي لم يتم تعيينها في المنشئ الجديد).\n\nانظر [هنا »](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L3106) للتعرف على تنفيذ المنطق الذي سيتم استخدامه عند تحديث [قاعدة بيانات نظير المستخدم المحلي](https://core.telegram.org/api/peers.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/user"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["user"]}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المستخدم يشير إلى المستخدم الذي قام بتسجيل الدخول حاليًا", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المستخدم جهة اتصال عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "mutual_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المستخدم جهة اتصال متبادلة.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا تم حذف حساب هذا المستخدم.  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا، راجع [هنا »](https://core.telegram.org/api/peers.md#full-info-database) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "bot": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "هل هذا المستخدم روبوت؟  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا، راجع [هنا »](https://core.telegram.org/api/peers.md#full-info-database) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "bot_chat_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "هل يستطيع الروبوت رؤية جميع الرسائل في المجموعات؟", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "bot_nochats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "هل يمكن اضافة البوت للمجموعات؟", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا تم التحقق من هذا المستخدم", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يجب تقييد الوصول إلى هذا المستخدم للسبب المحدد في `restriction_reason`", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "انظر [دقيقة](https://core.telegram.org/api/min.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.20?true"}, "bot_inline_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت طلب تحديد الموقع الجغرافي الخاص بنا في الوضع المضمن", "x-telegram-field-docs": true, "x-tl-flag": "flags.21?true"}, "support": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا مستخدم دعم رسمي", "x-telegram-field-docs": true, "x-tl-flag": "flags.23?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "قد يكون هذا مستخدم احتيال", "x-telegram-field-docs": true, "x-tl-flag": "flags.24?true"}, "apply_min_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينها وتم تعيين `min`، فيمكن استخدام قيمة `photo` لتحديث قاعدة البيانات المحلية، راجع وثائق تلك العلامة لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فقد أبلغ العديد من المستخدمين عن هذا المستخدم باعتباره مستخدمًا مزيفًا أو محتالًا: كن حذرًا عند التفاعل معه.", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "bot_attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا الروبوت يقدم [تطبيق ويب لقائمة المرفقات](https://core.telegram.org/api/bots/attach.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?true"}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المستخدم أحد مستخدمي Telegram Premium، يجب أن تؤدي التغييرات في هذه العلامة إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا، راجع [هنا »](https://core.telegram.org/api/peers.md#full-info-database) لمزيد من المعلومات.  يجب أيضًا أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة في حالة تعيين العلامة `self` إلى تشغيل الاستدعاءات التالية، لتحديث ذاكرات التخزين المؤقت المعنية: - ذاكرة التخزين المؤقت [help.getConfig](https://core.telegram.org/method/help.getConfig.md) - ذاكرة التخزين المؤقت [messages.getTopReactions](https://core.telegram.org/method/messages.getTopReactions.md) إذا لم يتم تعيين العلامة `bot` ****", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "attach_menu_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء قمنا بتثبيت [تطبيق الويب لقائمة المرفقات](https://core.telegram.org/api/bots/attach.md) الذي يقدمه هذا الروبوت.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.29?true"}, "bot_can_edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكاننا تعديل صورة الملف الشخصي والاسم والنص ووصف هذا الروبوت لأننا نملكه.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة (إذا لم يتم تعيين `min`) إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.1?true"}, "close_friend": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كنا قد وضعنا علامة على هذا المستخدم على أنه [صديق مقرب، انظر هنا » لمزيد من المعلومات](https://core.telegram.org/api/privacy.md).  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.2?true"}, "stories_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان لدينا [مخفي »](https://core.telegram.org/api/stories.md#hiding-stories-of-other-users) جميع القصص النشطة لهذا المستخدم.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين العلامة `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.3?true"}, "stories_unavailable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "لا توجد قصص مرئية لهذا المستخدم.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.4?true"}, "contact_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "انظر [هنا لمزيد من المعلومات حول هذا العلم »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.10?true"}, "bot_business": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان من الممكن توصيل هذا الروبوت بمستخدم كما هو محدد هنا »](https://core.telegram.org/api/bots/connected-business-bots.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.11?true"}, "bot_has_main_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فقد قام هذا الروبوت بتكوين [التطبيق المصغر الرئيسي »](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.13?true"}, "bot_forum_view": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإن هذا الروبوت يدعم [موضوعات منتدى الروبوت »](https://core.telegram.org/api/forum.md#bot-forums).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.16?true"}, "bot_forum_can_manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإن هذا الروبوت يدعم [موضوعات منتدى الروبوت »](https://core.telegram.org/api/forum.md#bot-forums)، ويُسمح للمستخدمين (وليس فقط الروبوت!) بإنشاء وإدارة موضوعات منتدى الروبوت في الدردشة الخاصة بهم مع الروبوت.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.17?true"}, "bot_can_manage_bots": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإن هذا الروبوت هو [روبوت مدير](https://core.telegram.org/api/bots/managed-bots.md) يمكنه إنشاء وإدارة [روبوتات مُدارة »](https://core.telegram.org/api/bots/managed-bots.md) نيابة عن المستخدم.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.18?true"}, "bot_guestchat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فيمكن استدعاء هذا الروبوت كـ [ضيف في الدردشات»](https://core.telegram.org/api/bots/guest-mode.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.19?true"}, "bot_guard": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "bot_forum_sidebar": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.22?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم، راجع [هنا »](https://core.telegram.org/api/peers.md#peer-id) لمزيد من المعلومات ونطاق المعرف المتاح.", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "الوصول إلى تجزئة المستخدم، راجع [هنا »](https://core.telegram.org/api/peers.md#access-hash) لمزيد من المعلومات.  إذا تم تعيين هذه العلامة، عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بإنشاء علامة افتراضية تسمى `min_access_hash`، وهي: - اضبط على `true` إذا تم تعيين `min` AND -- لم يتم تعيين علامة `phone` **غير** أو - تم تعيين علامة `phone` وسلسلة رقم الهاتف المرتبطة بها غير فارغة - اضبط على `false` وإلا.   بعد ذلك، قم بتطبيق كل من `access_hash` و`min_access_hash` على قاعدة البيانات المحلية إذا: - `min_access_hash` خطأ أو - `min_access_hash` صحيح AND - لا يوجد كائن مخبأ محليًا لهذا المستخدم أو - لا يوجد `access_hash` في ذاكرة التخزين المؤقت المحلية أو - الكائن المخزن مؤقتًا `min_access_hash` صحيح أيضًا إذا كان يحتوي الكائن المدمج النهائي المخزن في قاعدة البيانات على الحقل `min_access_hash` مضبوطًا على صحيح، والحقل `access_hash` ذو الصلة **فقط** مناسب للاستخدام في [`inputPeerPhotoFileLocation` »](https://core.telegram.org/constructor/inputPeerPhotoFileLocation.md)، مباشرة [لتنزيل صور الملف الشخصي](https://core.telegram.org/api/files.md) للمستخدمين، وفي كل مكان آخر يجب إنشاء مُنشئ `inputPeer*FromMessage` كما هو محدد [هنا»](https://core.telegram.org/api/min.md).  يمكن للروبوتات أيضًا استخدام تجزئة الوصول الأدنى في بعض الحالات، عن طريق تمرير `0` بدلاً من تجزئة الوصول الأدنى.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "الاسم الأول.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين العلامة `min` أو - تم تعيين العلامة `min` AND -- تم تعيين العلامة `min` لإدخال المستخدم المخبأ محليًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "الاسم الأخير.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين علامة `min` أو - تم تعيين علامة `min` AND -- تم تعيين علامة `min` لإدخال المستخدم المخبأ محليًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "username": {"type": "string", "x-tl-type": "string", "description": "اسم المستخدم النشط الرئيسي.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين علامة `min` أو - تم تعيين علامة `min` AND -- تم تعيين علامة `min` لإدخال المستخدم المخبأ محليًا.  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا إذا تم احترام الشروط المذكورة أعلاه وتم تعيين علامة `bot_can_edit` أيضًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "phone": {"type": "string", "x-tl-type": "string", "description": "رقم التليفون.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين العلامة `min` أو - تم تعيين العلامة `min` AND -- تم تعيين العلامة `min` لإدخال المستخدم المخبأ محليًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "photo": {"type": "object", "x-tl-type": "UserProfilePhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userProfilePhotoEmpty", "userProfilePhoto"]}}, "description": "الصورة الشخصية للمستخدم.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين العلامة `min` أو - تم تعيين العلامة `min` AND -- تم تعيين العلامة `apply_min_photo` أو - تم تعيين العلامة `min` لإدخال المستخدم المخزن مؤقتًا محليًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?UserProfilePhoto"}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "حالة المستخدم على الإنترنت.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين العلامة `min` أو - تم تعيين العلامة `min` AND -- تم تعيين العلامة `min` لإدخال المستخدم المخبأ محليًا أو - إدخال المستخدم المخبأ محليًا يساوي [userStatusEmpty](https://core.telegram.org/constructor/userStatusEmpty.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?UserStatus"}, "bot_info_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إصدار الحقل [bot_info في userFull](https://core.telegram.org/constructor/userFull.md)، يزداد في كل مرة يتغير فيها.  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا، راجع [هنا »](https://core.telegram.org/api/peers.md#full-info-database) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?int"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "description": "يحتوي على سبب تقييد الوصول إلى هذا المستخدم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?Vector<RestrictionReason>"}, "bot_inline_placeholder": {"type": "string", "x-tl-type": "string", "description": "عنصر نائب مضمن لهذا الروبوت المضمن", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?string"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "رمز اللغة للمستخدم", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?string"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "[حالة الرموز التعبيرية](https://core.telegram.org/api/emoji-status.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.30?EmojiStatus"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>", "description": "أسماء مستخدمين إضافية.  عند تحديث [قاعدة بيانات النظراء المحلية](https://core.telegram.org/api/peers.md)، قم بتطبيق التغييرات على هذا الحقل فقط إذا: - لم يتم تعيين علامة `min` أو - تم تعيين علامة `min` AND -- تم تعيين علامة `min` لإدخال المستخدم المخبأ محليًا.  يجب أن تؤدي التغييرات التي يتم إجراؤها على هذه العلامة (إذا تم احترام الشروط المذكورة أعلاه) إلى إبطال ذاكرة التخزين المؤقت [userFull](https://core.telegram.org/constructor/userFull.md) المحلية لمعرف المستخدم هذا.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.0?Vector<Username>"}, "stories_max_id": {"type": "object", "x-tl-type": "RecentStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentStory"]}}, "description": "ملخص [القصص النشطة] للمستخدم »](https://core.telegram.org/api/stories.md#recent-story-summaries).   عند تحديث [قاعدة بيانات النظير المحلية](https://core.telegram.org/api/peers.md)، لا تقم بتطبيق التغييرات على هذا الحقل إذا تم تعيين علامة `min` للمنشئ الوارد.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.5?RecentStory"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "المستخدم [لون التمييز](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.8?PeerColor"}, "profile_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "المستخدم [لون الملف الشخصي](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.9?PeerColor"}, "bot_active_users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المستخدمون النشطون شهريًا (MAU) لهذا الروبوت (قد يكونون غائبين بالنسبة للروبوتات الصغيرة).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.12?int"}, "bot_verification_icon": {"type": "string", "pattern": "^-?\\d+$", "description": "يصف [رمز التحقق من الروبوت »](https://core.telegram.org/api/bots/verification.md).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags2.14?long"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "إذا تم التعيين، فقد قام المستخدم بتمكين [الرسائل المدفوعة »](https://core.telegram.org/api/paid-messages.md)، *قد* نحتاج* إلى دفع المبلغ المحدد من [Stars](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 الاتصال", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم أو `0`، إذا كان المستخدم الذي لديه رقم الهاتف المحدد غير مسجل", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard", "user_id"], "additionalProperties": false}, "messageMediaUnsupported": {"title": "messageMediaUnsupported", "description": "الإصدار الحالي من العميل لا يدعم هذا النوع من الوسائط.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaUnsupported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaDocument": {"title": "messageMediaDocument", "description": "المستند (فيديو، صوت، صوت، ملصق، أي نوع وسائط باستثناء الصورة)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaDocument"]}, "nopremium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كان هذا ملصقًا عاديًا، إذا لم يتم ضبطه، فهو ملصق مميز ويجب تشغيل الرسوم المتحركة المميزة للملصق.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي إخفاء هذه الوسائط خلف تحذير المفسد", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كان هذا فيديو.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "round": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا فيديو مستدير.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "voice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت هذه رسالة صوتية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "الوثيقة المرفقة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Document"}, "alt_documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "معاينة صفحة الويب", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaWebPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaWebPage"]}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يحدد أنه يجب استخدام معاينة وسائط كبيرة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يحدد أنه يجب استخدام معاينة صغيرة للوسائط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "manual": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "If set, indicates that the URL used for the webpage preview was specified manually using [inputMediaWebPage](https://core.telegram.org/constructor/inputMediaWebPage.md), and may not be related to any of the URLs specified in the message.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "safe": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة التعيين، يمكن فتح صفحة الويب مباشرة دون تأكيد المستخدم؛ بخلاف ذلك، يلزم تأكيد المستخدم، مع إظهار URL بالضبط الذي سيتم فتحه.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "معاينة صفحة الويب", "x-telegram-field-docs": true}}, "required": ["_", "webpage"], "additionalProperties": false}, "messageMediaVenue": {"title": "messageMediaVenue", "description": "المكان", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVenue"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "تحديد الموقع الجغرافي للمكان", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم المكان", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "العنوان", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "موفر المكان: في الوقت الحالي، يلزم دعم \"Foursquare\" و\"gplaces\" (أماكن Google) فقط", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "معرف المكان في قاعدة بيانات المزود", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "نوع المكان في قاعدة بيانات الموفر", "x-telegram-field-docs": true}}, "required": ["_", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "messageMediaGame": {"title": "messageMediaGame", "description": "لعبة تيليجرام", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGame"]}, "game": {"type": "object", "x-tl-type": "Game", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["game"]}}, "description": "لعبة", "x-telegram-field-docs": true}}, "required": ["_", "game"], "additionalProperties": false}, "messageMediaInvoice": {"title": "messageMediaInvoice", "description": "الفاتورة", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaInvoice"]}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا تم طلب عنوان الشحن", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا مثالًا على الفاتورة", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم المنتج، 1-32 حرفًا", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "وصف المنتج، 1-255 حرفًا", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "URL صورة المنتج للفاتورة. يمكن أن تكون صورة للسلعة أو صورة تسويقية لخدمة ما. الناس يحبون ذلك بشكل أفضل عندما يرون ما يدفعون مقابله.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?WebDocument"}, "receipt_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف رسالة الاستلام: إذا تم تعيينه، يجب على العملاء تغيير نص الزر الأول [keyboardButtonBuy](https://core.telegram.org/constructor/keyboardButtonBuy.md) المرفق دائمًا بـ [الرسالة](https://core.telegram.org/constructor/message.md) إلى نسخة مترجمة من الكلمة `Receipt`", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)، أو `XTR` لـ [نجوم التليجرام](https://core.telegram.org/api/stars.md).", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "معلمة الارتباط العميق الفريدة لروبوت والتي يمكن استخدامها لإنشاء هذه الفاتورة", "x-telegram-field-docs": true}, "extended_media": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "مهمل", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?MessageExtendedMedia"}}, "required": ["_", "title", "description", "currency", "total_amount", "start_param"], "additionalProperties": false}, "messageMediaGeoLive": {"title": "messageMediaGeoLive", "description": "يشير إلى [تحديد الموقع الجغرافي المباشر](https://core.telegram.org/api/live-location.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGeoLive"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "تحديد الموقع الجغرافي", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة إلى [المواقع المباشرة](https://core.telegram.org/api/live-location.md)، الاتجاه الذي يتحرك فيه الموقع، بالدرجات؛ 1-360", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "فترة صلاحية تحديد الموقع الجغرافي المقدمة", "x-telegram-field-docs": true}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة إلى [المواقع المباشرة](https://core.telegram.org/api/live-location.md)، الحد الأقصى للمسافة إلى عضو دردشة آخر لتنبيهات القرب، بالأمتار (0-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": "معرف القصة", "x-telegram-field-docs": true}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "القصة نفسها، إذا كانت غائبة، يمكنك إحضارها باستخدام [stories.getStoriesByID](https://core.telegram.org/method/stories.getStoriesByID.md) والمعلمات `peer`/`id` المحددة أعلاه.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?StoryItem"}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "messageMediaGiveaway": {"title": "messageMediaGiveaway", "description": "يحتوي على معلومات حول [الهبة، انظر هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فلن يتمكن سوى المشتركين الجدد بدءًا من تاريخ إنشاء الهبة من المشاركة في الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيتم نشر الفائزين بالهدايا بشكل عام وسيتم إدراجهم في رسالة [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md) التي سيتم إرسالها تلقائيًا إلى القناة بمجرد انتهاء الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channels": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "القنوات التي يجب على المستخدم الانضمام إليها للمشاركة في الهدية.", "x-telegram-field-docs": true}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "في حالة التعيين، يمكن فقط للمستخدمين المقيمين في هذه البلدان المشاركة في الهبة، (المحددة كقائمة مكونة من حرفين ISO 3166-1 alpha-2 رموز البلدان)؛ وبخلاف ذلك لا توجد قيود على أساس البلد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "يمكن أن تحتوي على وصف نصي لجوائز الهدايا الإضافية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد اشتراكات [Telegram Premium](https://core.telegram.org/api/premium.md) الممنوحة.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المدة بالأشهر لكل اشتراك [Telegram Premium](https://core.telegram.org/api/premium.md) في الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "بالنسبة إلى [هدايا Telegram Star](https://core.telegram.org/api/stars.md#star-giveaways)، إجمالي عدد نجوم Telegram التي سيتم منحها.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?long"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ انتهاء الهبة.", "x-telegram-field-docs": true}}, "required": ["_", "channels", "quantity", "until_date"], "additionalProperties": false}, "messageMediaGiveawayResults": {"title": "messageMediaGiveawayResults", "description": "انتهت [الهبة](https://core.telegram.org/api/giveaways.md) مع الفائزين العامين، يحتوي هذا المنشئ على معلومات حول الفائزين.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveawayResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveawayResults"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يشارك في الهبة سوى المشتركين الجدد بدءًا من تاريخ إنشاء الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينها، فسيتم إلغاء الهبة واسترداد أموالها بالكامل.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف القناة/المجموعة الفائقة التي تم [تعزيزها](https://core.telegram.org/api/boost.md) تلقائيًا من قبل الفائزين بالهدية طوال مدة الاشتراك المميز.", "x-tl-type": "long", "x-telegram-field-docs": true}, "additional_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد القنوات الأخرى التي شاركت في الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "launch_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة مع الهبة في `channel_id`.", "x-telegram-field-docs": true}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد الفائزين في الهدية.", "x-telegram-field-docs": true}, "unclaimed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الجوائز التي لم يتم المطالبة بها بعد.", "x-telegram-field-docs": true}, "winners": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "ما يصل إلى 100 معرف مستخدم للفائزين بالهبة.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المدة بالأشهر لكل اشتراك [Telegram Premium](https://core.telegram.org/api/premium.md) في الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "بالنسبة إلى [هدايا Telegram Star](https://core.telegram.org/api/stars.md#star-giveaways)، إجمالي عدد نجوم Telegram التي سيتم منحها.", "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": "سعر الوسائط في [نجوم التليجرام](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Тип TL: MessageExtendedMedia."}, "x-tl-type": "Vector<MessageExtendedMedia>", "description": "إما الوسائط المدفوعة، أو معاينات الوسائط ذات الدقة المنخفضة للغاية إذا لم يتم شراء الوسائط بعد، [انظر هنا »](https://core.telegram.org/api/paid-media.md#viewing-paid-media) لمزيد من المعلومات.", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount", "extended_media"], "additionalProperties": false}, "messageMediaToDo": {"title": "messageMediaToDo", "description": "يمثل [قائمة المهام »](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaToDo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaToDo"]}, "todo": {"type": "object", "x-tl-type": "TodoList", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoList"]}}, "description": "قائمة المهام.", "x-telegram-field-docs": true}, "completions": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoCompletion", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoCompletion"]}}, "description": "Тип TL: TodoCompletion."}, "x-tl-type": "Vector<TodoCompletion>", "description": "العناصر المكتملة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<TodoCompletion>"}}, "required": ["_", "todo"], "additionalProperties": false}, "messageMediaVideoStream": {"title": "messageMediaVideoStream", "description": "يحدد المكالمة الجماعية النشطة المرتبطة بـ [قصة حية »](https://core.telegram.org/api/group-calls.md#live-stories).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVideoStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVideoStream"]}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت القصة المباشرة تستخدم [RTMP وضع البث المباشر »](https://core.telegram.org/api/group-calls.md#stream-mode)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "مكالمة جماعية نشطة للقصة الحية", "x-telegram-field-docs": true}}, "required": ["_", "call"], "additionalProperties": false}, "messageMediaWidget": {"title": "messageMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaWidget"]}, "is_copy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "background_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "required": ["_", "width", "height", "payload"], "additionalProperties": false}, "messageActionEmpty": {"title": "messageActionEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatCreate": {"title": "messageActionChatCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatCreate"]}, "title": {"type": "string", "x-tl-type": "string"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "title", "users"], "additionalProperties": false}, "messageActionChatEditTitle": {"title": "messageActionChatEditTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditTitle"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatEditPhoto": {"title": "messageActionChatEditPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditPhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionChatDeletePhoto": {"title": "messageActionChatDeletePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeletePhoto"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatAddUser": {"title": "messageActionChatAddUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatAddUser"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "messageActionChatDeleteUser": {"title": "messageActionChatDeleteUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeleteUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "messageActionChatJoinedByLink": {"title": "messageActionChatJoinedByLink", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedByLink"]}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "inviter_id"], "additionalProperties": false}, "messageActionChannelCreate": {"title": "messageActionChannelCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelCreate"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatMigrateTo": {"title": "messageActionChatMigrateTo", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatMigrateTo"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "messageActionChannelMigrateFrom": {"title": "messageActionChannelMigrateFrom", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelMigrateFrom"]}, "title": {"type": "string", "x-tl-type": "string"}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "chat_id"], "additionalProperties": false}, "messageActionPinMessage": {"title": "messageActionPinMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPinMessage"]}}, "required": ["_"], "additionalProperties": false}, "messageActionHistoryClear": {"title": "messageActionHistoryClear", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionHistoryClear"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGameScore": {"title": "messageActionGameScore", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGameScore"]}, "game_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "game_id", "score"], "additionalProperties": false}, "messageActionPaymentSentMe": {"title": "messageActionPaymentSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSentMe"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Тип TL: PaymentRequestedInfo.", "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "charge": {"type": "object", "x-tl-type": "PaymentCharge", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}}, "description": "Тип TL: PaymentCharge."}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount", "payload", "charge"], "additionalProperties": false}, "messageActionPaymentSent": {"title": "messageActionPaymentSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSent"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invoice_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount"], "additionalProperties": false}, "messageActionPhoneCall": {"title": "messageActionPhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPhoneCall"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall"]}}, "description": "Тип TL: PhoneCallDiscardReason.", "x-tl-flag": "flags.0?PhoneCallDiscardReason"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "call_id"], "additionalProperties": false}, "messageActionScreenshotTaken": {"title": "messageActionScreenshotTaken", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionScreenshotTaken"]}}, "required": ["_"], "additionalProperties": false}, "messageActionCustomAction": {"title": "messageActionCustomAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionCustomAction"]}, "message": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "message"], "additionalProperties": false}, "messageActionBotAllowed": {"title": "messageActionBotAllowed", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBotAllowed"]}, "attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "from_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "app": {"type": "object", "x-tl-type": "BotApp", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppNotModified", "botApp"]}}, "description": "Тип TL: BotApp.", "x-tl-flag": "flags.2?BotApp"}}, "required": ["_"], "additionalProperties": false}, "messageActionSecureValuesSentMe": {"title": "messageActionSecureValuesSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSecureValuesSentMe"]}, "values": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValue"]}}, "description": "TL 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 Premium](https://core.telegram.org/api/premium.md) من أجل متابعة تسجيل الدخول/الاشتراك، راجع [هنا »](https://core.telegram.org/api/auth.md#paid-auth) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCodePaymentRequired"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodePaymentRequired"]}, "store_product": {"type": "string", "x-tl-type": "string", "description": "بالنسبة للتطبيقات الرسمية، قم بتمزيق معرف اشتراك Telegram Premium.", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "تجزئة رمز الهاتف، ليتم تخزينها وإعادة استخدامها لاحقًا مع [auth.signIn](https://core.telegram.org/method/auth.signIn.md)", "x-telegram-field-docs": true}, "support_email_address": {"type": "string", "x-tl-type": "string", "description": "عنوان بريد إلكتروني يمكن الاتصال به لمزيد من المعلومات حول هذا الطلب.", "x-telegram-field-docs": true}, "support_email_subject": {"type": "string", "x-tl-type": "string", "description": "الموضوع الإلزامي للبريد الإلكتروني.", "x-telegram-field-docs": true}, "premium_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المدة بالأيام لاشتراك [Telegram Premium](https://core.telegram.org/api/premium.md) الممنوح من خلال عملية الشراء هذه.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies).", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "store_product", "phone_code_hash", "support_email_address", "support_email_subject", "premium_days", "currency", "amount"], "additionalProperties": false}, "auth.authorization": {"title": "auth.authorization", "description": "يحتوي على معلومات ترخيص المستخدم.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.authorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.authorization"]}, "setup_password_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يقترح على المستخدم إعداد كلمة مرور للتحقق بخطوتين ليتمكن من تسجيل الدخول مرة أخرى", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "otherwise_relogin_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا تم تعيين setup_password_required ورفض المستخدم تعيين كلمة مرور للتحقق بخطوتين، فلن يتمكن من تسجيل الدخول إلى حسابه عبر SMS مرة أخرى إلا بعد مرور هذه الأيام العديدة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "tmp_sessions": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد [الجلسات الموازية](https://core.telegram.org/api/datacenter.md#parallel-sessions) التي قد يفتحها العميل على الوصلة الرئيسية لوحدة DC المنزلية الخاصة به لزيادة الإنتاجية؛ في حالة الغياب أو `≤ 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": "شروط خدمة تيليجرام: يجب على المستخدم قراءة شروط الخدمة والموافقة عليها قبل الاشتراك في تيليجرام", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?help.TermsOfService"}}, "required": ["_"], "additionalProperties": false}, "auth.exportedAuthorization": {"title": "auth.exportedAuthorization", "description": "بيانات نسخ الترخيص بين مراكز البيانات.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.exportedAuthorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.exportedAuthorization"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم الحالي", "x-tl-type": "long", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "يأذن بالمفتاح", "x-telegram-field-docs": true}}, "required": ["_", "id", "bytes"], "additionalProperties": false}, "inputNotifyPeer": {"title": "inputNotifyPeer", "description": "الإخطارات التي تم إنشاؤها بواسطة مستخدم أو مجموعة معينة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "المستخدم أو المجموعة", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputNotifyUsers": {"title": "inputNotifyUsers", "description": "الإخطارات الصادرة عن جميع المستخدمين.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyChats": {"title": "inputNotifyChats", "description": "الإخطارات التي تم إنشاؤها بواسطة جميع المجموعات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyChats"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyBroadcasts": {"title": "inputNotifyBroadcasts", "description": "جميع [القنوات](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyBroadcasts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyForumTopic": {"title": "inputNotifyForumTopic", "description": "الإخطارات الناتجة عن [موضوع](https://core.telegram.org/api/forum.md#forum-topics) في [منتدى](https://core.telegram.org/api/forum.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyForumTopic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyForumTopic"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "معرف المنتدى", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف الموضوع](https://core.telegram.org/api/forum.md#forum-topics)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "top_msg_id"], "additionalProperties": false}, "inputNotifyCommunity": {"title": "inputNotifyCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyCommunity"]}, "community": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "TL 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": "(القيمة الثلاثية) في حالة التعيين، تشير إلى ما إذا كان سيتم عرض معاينات الرسائل في الإشعارات أم لا؛ وإلا يجب استخدام السلوك الافتراضي.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Bool"}, "silent": {"type": "boolean", "x-tl-type": "Bool", "description": "(القيمة الثلاثية) في حالة التعيين، تشير إلى ما إذا كان سيتم كتم صوت النظير أو إلغاء كتمه؛ وإلا يجب استخدام السلوك الافتراضي.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "mute_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "كتم كافة الإخطارات حتى هذا التاريخ", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت الإشعارات لتطبيق iOS الرسمي", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?NotificationSound"}, "android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت الإخطار لتطبيق أندرويد الرسمي", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?NotificationSound"}, "other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت الإخطار للتطبيقات الأخرى", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?NotificationSound"}, "stories_muted": {"type": "boolean", "x-tl-type": "Bool", "description": "ما إذا كان ينبغي تعطيل إشعارات القصة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Bool"}, "stories_hide_sender": {"type": "boolean", "x-tl-type": "Bool", "description": "ما إذا كان يجب عرض اسم المرسل في إشعارات القصة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Bool"}, "stories_ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت لإشعارات القصة على تطبيق iOS الرسمي", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?NotificationSound"}, "stories_android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت لإشعارات القصة على تطبيق Android الرسمي", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?NotificationSound"}, "stories_other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "صوت لإشعارات القصة على التطبيقات الأخرى", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?NotificationSound"}}, "required": ["_"], "additionalProperties": false}, "peerSettings": {"title": "peerSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSettings"]}, "report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "add_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "block_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "share_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "need_contacts_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "report_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "autoarchived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "invite_members": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "request_chat_broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "business_bot_paused": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "business_bot_can_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "geo_distance": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "request_chat_title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.9?string"}, "request_chat_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "business_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "business_bot_manage_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.13?string"}, "charge_paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.14?long"}, "registration_month": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.15?string"}, "phone_country": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "name_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "photo_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int"}, "bot_inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.19?long"}, "bot_owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.20?long"}}, "required": ["_"], "additionalProperties": false}, "wallPaper": {"title": "wallPaper", "description": "يمثل [خلفية](https://core.telegram.org/api/wallpapers.md) بناءً على صورة.", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "المعرف", "x-tl-type": "long", "x-telegram-field-docs": true}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء أنشأنا هذه الخلفية", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت هذه هي خلفية الشاشة الافتراضية", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "pattern": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كانت هذه [خلفية نمطية]](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي استخدام خلفية الشاشة هذه في الوضع المظلم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "معرف خلفية فريد يستخدم عند إنشاء [روابط خلفية](https://core.telegram.org/api/links.md#wallpaper-links) أو [استيراد روابط خلفية](https://core.telegram.org/api/wallpapers.md).", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "ورق الجدران الفعلي", "x-telegram-field-docs": true}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "معلومات حول كيفية إنشاء خلفية الشاشة حسب [هذه التعليمات»](https://core.telegram.org/api/wallpapers.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WallPaperSettings"}}, "required": ["_", "id", "access_hash", "slug", "document"], "additionalProperties": false}, "wallPaperNoFile": {"title": "wallPaperNoFile", "description": "يمثل [خلفية](https://core.telegram.org/api/wallpapers.md) فقط بناءً على الألوان/التدرجات.", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ورق الجدران", "x-tl-type": "long", "x-telegram-field-docs": true}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت هذه هي خلفية الشاشة الافتراضية", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان ينبغي استخدام خلفية الشاشة هذه في الوضع المظلم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "معلومات حول كيفية إنشاء خلفية الشاشة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WallPaperSettings"}}, "required": ["_", "id"], "additionalProperties": false}, "inputReportReasonSpam": {"title": "inputReportReasonSpam", "description": "الإبلاغ عن البريد العشوائي", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonSpam"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonSpam"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonViolence": {"title": "inputReportReasonViolence", "description": "الإبلاغ عن العنف", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonViolence"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonViolence"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPornography": {"title": "inputReportReasonPornography", "description": "تقرير عن المواد الإباحية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPornography"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPornography"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonChildAbuse": {"title": "inputReportReasonChildAbuse", "description": "الإبلاغ عن إساءة معاملة الأطفال", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonChildAbuse"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonChildAbuse"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonOther": {"title": "inputReportReasonOther", "description": "أخرى", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonOther"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonOther"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonCopyright": {"title": "inputReportReasonCopyright", "description": "الإبلاغ عن المحتوى المحمي بحقوق الطبع والنشر", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonCopyright"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonCopyright"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonGeoIrrelevant": {"title": "inputReportReasonGeoIrrelevant", "description": "الإبلاغ عن مجموعة جغرافية غير ذات صلة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonGeoIrrelevant"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonFake": {"title": "inputReportReasonFake", "description": "الإبلاغ عن انتحال شخصية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonFake"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonFake"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonIllegalDrugs": {"title": "inputReportReasonIllegalDrugs", "description": "تقرير عن المخدرات غير المشروعة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonIllegalDrugs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonIllegalDrugs"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPersonalDetails": {"title": "inputReportReasonPersonalDetails", "description": "تقرير عن الكشف عن التفاصيل الشخصية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "userFull": {"title": "userFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["userFull"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "phone_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "phone_calls_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "can_pin_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "voice_messages_forbidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "stories_pinned_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "wallpaper_overridden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "contact_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "read_dates_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.30?true"}, "sponsored_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.7?true"}, "can_view_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.9?true"}, "bot_can_manage_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.10?true"}, "display_gifts_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "noforwards_my_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.23?true"}, "noforwards_peer_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.24?true"}, "unofficial_security_risk": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.26?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Тип TL: PeerSettings."}, "personal_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.21?Photo"}, "profile_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}, "fallback_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.22?Photo"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL 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": "قائمة معرفات جهات الاتصال التي لا يمكن استيرادها بسبب قيود النظام وسيلزم استيرادها في وقت لاحق.", "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": "معدل للاستخدام في المعلمة `offset_rate` في المكالمة التالية إلى [messages.searchGlobal](https://core.telegram.org/method/messages.searchGlobal.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يشير إلى الموضع المطلق لـ `messages[0]` ضمن إجمالي النتائج المحددة بالعدد `count`.  يعد هذا مفيدًا، على سبيل المثال، إذا تم جلب النتيجة باستخدام `offset_id`، ونحتاج إلى عرض عداد `progress/total` (مثل `photo 134 of 200`، بالنسبة لجميع الوسائط في الدردشة، يمكننا ببساطة استخدام `photo ${offset_id_offset} of ${count}`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "search_flood": {"type": "object", "x-tl-type": "SearchPostsFlood", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchPostsFlood"]}}, "description": "[بالنسبة لعمليات البحث عن المنشورات العالمية »](https://core.telegram.org/api/search.md#posts-tab)، الكمية المتبقية من عمليات البحث المجانية، هنا `query_is_free` تتعلق بالمكالمة الحالية فقط، وليس بالمكالمة المقسمة إلى صفحات التالية، وستكون جميع مكالمات ترقيم الصفحات اللاحقة مجانية دائمًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SearchPostsFlood"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "قائمة الرسائل", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[موضوعات المنتدى](https://core.telegram.org/api/forum.md#forum-topics) الرسائل المرتجعة تخص.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "قائمة الدردشات المذكورة في الرسائل", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "يشير إلى الموضع المطلق لـ `messages[0]` ضمن إجمالي النتائج المحددة بالعدد `count`.  يعد هذا مفيدًا، على سبيل المثال، إذا تم جلب النتيجة باستخدام `offset_id`، ونحتاج إلى عرض عداد `progress/total` (مثل `photo 134 of 200`، لجميع الوسائط في الدردشة، يمكننا ببساطة استخدام `photo ${offset_id_offset} of ${count}`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "تم العثور على رسائل", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[موضوع المنتدى](https://core.telegram.org/api/forum.md#forum-topics) المعلومات", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "معلومات كاملة عن [channel](https://core.telegram.org/api/channel.md#channels)، [supergroup](https://core.telegram.org/api/channel.md#supergroups)، [gigagroup](https://core.telegram.org/api/channel.md#gigagroups) أو [المجموعة الأساسية](https://core.telegram.org/api/channel.md#basic-groups).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatFull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatFull"]}, "full_chat": {"type": "object", "x-tl-type": "ChatFull", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatFull", "channelFull", "communityFull"]}}, "description": "معلومات كاملة", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: 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": "Return only messages containing gifs", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGif"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGif"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVoice": {"title": "inputMessagesFilterVoice", "description": "إرجاع الرسائل التي تحتوي على ملاحظات صوتية فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMusic": {"title": "inputMessagesFilterMusic", "description": "إرجاع الرسائل التي تحتوي على ملفات صوتية فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterChatPhotos": {"title": "inputMessagesFilterChatPhotos", "description": "إرجاع تغييرات صور الدردشة فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterChatPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterChatPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhoneCalls": {"title": "inputMessagesFilterPhoneCalls", "description": "الرد على المكالمات الهاتفية فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhoneCalls"]}, "missed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إرجاع المكالمات الهاتفية الفائتة فقط", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVoice": {"title": "inputMessagesFilterRoundVoice", "description": "قم بإرجاع مقاطع الفيديو المستديرة والملاحظات الصوتية فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVideo": {"title": "inputMessagesFilterRoundVideo", "description": "إرجاع مقاطع الفيديو المستديرة فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMyMentions": {"title": "inputMessagesFilterMyMentions", "description": "قم بإرجاع الرسائل التي كان فيها المستخدم الحالي فقط [المذكور](https://core.telegram.org/api/mentions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMyMentions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMyMentions"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterGeo": {"title": "inputMessagesFilterGeo", "description": "قم بإرجاع الرسائل التي تحتوي على مواقع جغرافية فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGeo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterContacts": {"title": "inputMessagesFilterContacts", "description": "إرجاع الرسائل التي تحتوي على جهات اتصال فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPinned": {"title": "inputMessagesFilterPinned", "description": "جلب الرسائل المثبتة فقط", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPoll": {"title": "inputMessagesFilterPoll", "description": "تصفية رسائل الاستطلاع، راجع [البحث عن استطلاعات الرأي »](https://core.telegram.org/api/poll.md#searching-for-polls)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPoll"]}}, "required": ["_"], "additionalProperties": false}, "updateNewMessage": {"title": "updateNewMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateMessageID": {"title": "updateMessageID", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "random_id"], "additionalProperties": false}, "updateDeleteMessages": {"title": "updateDeleteMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteMessages"]}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateUserTyping": {"title": "updateUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserTyping"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "user_id", "action"], "additionalProperties": false}, "updateChatUserTyping": {"title": "updateChatUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatUserTyping"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "عدد التحديثات الموضوعة في قائمة الانتظار في مربع الرسائل المشتركة كبير جدًا بحيث لا يمكن تسليمها بشكل سلبي عبر المقبس، قم باستدعاء [updates.getDifference](https://core.telegram.org/method/updates.getDifference.md) لجلب الفرق كما هو محدد في [الوثائق »](https://core.telegram.org/api/updates.md).\n\nلا **لا** تشير بالضرورة إلى [تم الوصول إلى الحد الأقصى لحجم مربع الرسالة](https://core.telegram.org/api/updates.md#recovering-gaps-for-very-old-messages)، بل تشير ببساطة إلى أن عدد التحديثات الموضوعة في قائمة الانتظار في مربع الرسالة كبير جدًا بحيث لا يمكن تسليمها بشكل سلبي عبر المقبس.", "externalDocs": {"url": "https://core.telegram.org/constructor/updatesTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updatesTooLong"]}}, "required": ["_"], "additionalProperties": false}, "updateShortMessage": {"title": "updateShortMessage", "description": "معلومات حول رسالة مرسلة إلى (مستلمة من) مستخدم آخر", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت الرسالة صادرة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء ذكرنا في الرسالة", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت هناك بعض الإشارات **غير المقروءة** في هذه الرسالة", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا كان هذا صحيحًا، فستكون الرسالة عبارة عن رسالة صامتة، ولا ينبغي تشغيل أي إشعارات", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المرسل (إذا كان `outgoing` سيكون معرف الوجهة) للرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "الرسالة", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS العد](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التاريخ](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "معلومات حول رسالة معاد توجيهها", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معلومات حول الروبوت المضمن المستخدم لإنشاء هذه الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?long"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "الرد و [الموضوع](https://core.telegram.org/api/threads.md) المعلومات", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?MessageReplyHeader"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL 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": "مُنشئ مختصر يحتوي على معلومات حول رسالة نصية واردة جديدة من الدردشة", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortChatMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortChatMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت الرسالة صادرة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء ذكرنا في هذه الرسالة", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت الرسالة تحتوي على بعض الإشارات **غير المقروءة**", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا كان هذا صحيحًا، فستكون الرسالة عبارة عن رسالة صامتة، ولا ينبغي تشغيل أي إشعارات", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "from_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف مرسل الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الدردشة التي تم إرسال الرسالة إليها", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "رسالة", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS العد](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التاريخ](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "معلومات حول رسالة معاد توجيهها", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معلومات حول الروبوت المضمن المستخدم لإنشاء هذه الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?long"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "معلومات الرد (الموضوع).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?MessageReplyHeader"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL 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": "مُنشئ مختصر يحتوي على معلومات حول تحديث واحد ولا يتطلب بيانات مساعدة", "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": "مُنشئ مختصر يحتوي على معلومات حول رسالة صادرة واحدة إلى جهة اتصال (يجب استخراج الدردشة الوجهة من استدعاء الطريقة الذي أعاد هذا الكائن).", "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": "معرف الرسالة المرسلة", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS العد](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التاريخ](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "الوسائط المرفقة", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?MessageMedia"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL 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) المعرف", "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": "التشفير الرابع (انظر [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": "يشير إلى أن برقية *من المحتمل* أن تكون خاضعة للرقابة من قبل الحكومات/مزودي خدمات الإنترنت في المنطقة الحالية", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "force_try_ipv6": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم الاتصال بقوة باستخدام IPv6 [dcOptions](https://core.telegram.org/type/DcOption.md)، حتى لو كان العميل يعلم أن IPv4 متاح.", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "fpnv_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "التاريخ الحالي على الخادم", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ انتهاء هذا التكوين: عند انتهاء صلاحيته، يجب إعادة جلبه باستخدام [help.getConfig](https://core.telegram.org/method/help.getConfig.md)", "x-telegram-field-docs": true}, "test_mode": {"type": "boolean", "x-tl-type": "Bool", "description": "ما إذا كنا متصلين باختبار DC", "x-telegram-field-docs": true}, "this_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف DC الذي قام بإرجاع الرد", "x-telegram-field-docs": true}, "dc_options": {"type": "array", "items": {"type": "object", "x-tl-type": "DcOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dcOption"]}}, "description": "Тип TL: DcOption."}, "x-tl-type": "Vector<DcOption>", "description": "قائمة IP العاصمة", "x-telegram-field-docs": true}, "dc_txt_domain_name": {"type": "string", "x-tl-type": "string", "description": "اسم المجال لجلب قائمة DC المشفرة من سجل DNS TXT", "x-telegram-field-docs": true}, "chat_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لعدد الأعضاء في [المجموعات](https://core.telegram.org/api/channel.md)]", "x-telegram-field-docs": true}, "megagroup_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لعدد الأعضاء في [supergroups](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true}, "forwarded_count_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لعدد الرسائل التي يمكن إعادة توجيهها مرة واحدة باستخدام [messages.forwardMessages](https://core.telegram.org/method/messages.forwardMessages.md).", "x-telegram-field-docs": true}, "online_update_period_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يجب على العميل [تحديث حالته على الإنترنت](https://core.telegram.org/method/account.updateStatus.md) كل N مللي ثانية", "x-telegram-field-docs": true}, "offline_blur_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يجب إرسال التأخير قبل إرسال حالة عدم الاتصال إلى الخادم", "x-telegram-field-docs": true}, "offline_idle_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الوقت الذي لا يوجد فيه أي نشاط للمستخدم والذي يجب بعده التعامل معه دون الاتصال بالإنترنت", "x-telegram-field-docs": true}, "online_cloud_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا كنا غير متصلين بالإنترنت، ولكننا كنا متصلين بالإنترنت من عميل آخر خلال آخر `online_cloud_timeout_ms` مللي ثانية بعد انقطاع الاتصال، فقم بتأخير الإشعار في وضع عدم الاتصال لمدة `notify_cloud_delay_ms` مللي ثانية.", "x-telegram-field-docs": true}, "notify_cloud_delay_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا كنا غير متصلين بالإنترنت، ولكننا متصلين بالإنترنت من عميل آخر، فقم بتأخير إرسال إشعار عدم الاتصال لمدة `notify_cloud_delay_ms` مللي ثانية.", "x-telegram-field-docs": true}, "notify_default_delay_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا كان هناك عميل آخر متصل بالإنترنت، فقم بتأخير الإشعار لمدة `notification_default_delay_ms` مللي ثانية", "x-telegram-field-docs": true}, "push_chat_period_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ليس لاستخدام العميل", "x-telegram-field-docs": true}, "push_chat_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ليس لاستخدام العميل", "x-telegram-field-docs": true}, "edit_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن فقط تحرير الرسائل التي يقل عمرها (بالثواني) عن تلك المحددة في هذا الحقل", "x-telegram-field-docs": true}, "revoke_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن فقط حذف رسائل القناة/المجموعة الكبيرة التي يقل عمرها عن المحدد", "x-telegram-field-docs": true}, "revoke_pm_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن فقط حذف الرسائل الخاصة التي يقل عمرها عن المحدد", "x-telegram-field-docs": true}, "rating_e_decay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معدل الانحلال الأسي للحوسبة [أعلى تصنيف للأقران](https://core.telegram.org/api/top-rating.md)", "x-telegram-field-docs": true}, "stickers_recent_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لعدد الملصقات الحديثة", "x-telegram-field-docs": true}, "channels_read_media_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يشير إلى أنه يجب وضع علامة مقروءة على مقاطع الفيديو المستديرة (ملاحظات الفيديو) والرسائل الصوتية المرسلة في القنوات والأقدم من الفترة المحددة", "x-telegram-field-docs": true}, "tmp_sessions": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد [الجلسات الموازية](https://core.telegram.org/api/datacenter.md#parallel-sessions) التي قد يفتحها العميل على الوصلة الرئيسية لوحدة DC المنزلية الخاصة به لزيادة الإنتاجية؛ في حالة الغياب أو `≤ 1`، يجب استخدام جلسة رئيسية واحدة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "call_receive_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى المسموح به لوقت الرنين الصادر في مكالمات VoIP: إذا لم يرد المستخدم الذي نتصل به خلال الوقت المحدد (بالمللي ثانية)، فيجب علينا إنهاء المكالمة", "x-telegram-field-docs": true}, "call_ring_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى المسموح به لوقت الرنين الوارد في مكالمات VoIP: إذا لم يرد المستخدم الحالي خلال الوقت المحدد (بالمللي ثانية)، فسيتم رفض المكالمة تلقائيًا", "x-telegram-field-docs": true}, "call_connect_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "مهلة اتصال VoIP: إذا لم يتصل مثيل libtgvoip على الجانب الآخر من المكالمة بمثيل libtgvoip الخاص بنا خلال الوقت المحدد (بالملي ثانية)، فيجب إحباط المكالمة", "x-telegram-field-docs": true}, "call_packet_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا لم يتم استلام حزمة أثناء مكالمة VoIP لفترة زمنية محددة، فيجب إلغاء المكالمة", "x-telegram-field-docs": true}, "me_url_prefix": {"type": "string", "x-tl-type": "string", "description": "المجال المطلوب استخدامه للتحليل [روابط عميقة »](https://core.telegram.org/api/links.md).", "x-telegram-field-docs": true}, "autoupdate_url_prefix": {"type": "string", "x-tl-type": "string", "description": "URL لاستخدامه في التحديث التلقائي للتطبيق الحالي", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}, "gif_search_username": {"type": "string", "x-tl-type": "string", "description": "Username of the bot to use to search for GIFs", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?string"}, "venue_search_username": {"type": "string", "x-tl-type": "string", "description": "اسم المستخدم للبوت الذي سيتم استخدامه للبحث عن الأماكن", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?string"}, "img_search_username": {"type": "string", "x-tl-type": "string", "description": "اسم المستخدم للبوت الذي سيتم استخدامه للبحث عن الصور", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?string"}, "static_maps_provider": {"type": "string", "x-tl-type": "string", "description": "معرف موفر الخريطة لاستخدامه في الأماكن", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?string"}, "caption_length_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لطول التسمية التوضيحية (الطول بنقاط ترميز utf8)", "x-telegram-field-docs": true}, "message_length_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لطول الرسائل (الطول بنقاط ترميز utf8)", "x-telegram-field-docs": true}, "webfile_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف DC لاستخدامه في تنزيل [webfiles](https://core.telegram.org/api/files.md#downloading-webfiles)", "x-telegram-field-docs": true}, "suggested_lang_code": {"type": "string", "x-tl-type": "string", "description": "كود اللغة المقترح", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "نسخة حزمة اللغة", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "base_lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إصدار حزمة اللغة الأساسية", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "reactions_default": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "الافتراضي [رد فعل الرسالة](https://core.telegram.org/api/reactions.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?Reaction"}, "autologin_token": {"type": "string", "x-tl-type": "string", "description": "رمز تسجيل الدخول التلقائي، [انقر هنا لمزيد من المعلومات حول URL الترخيص »](https://core.telegram.org/api/url-authorization.md#link-url-authorization).", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?string"}}, "required": ["_", "date", "expires", "test_mode", "this_dc", "dc_options", "dc_txt_domain_name", "chat_size_max", "megagroup_size_max", "forwarded_count_max", "online_update_period_ms", "offline_blur_timeout_ms", "offline_idle_timeout_ms", "online_cloud_timeout_ms", "notify_cloud_delay_ms", "notify_default_delay_ms", "push_chat_period_ms", "push_chat_limit", "edit_time_limit", "revoke_time_limit", "revoke_pm_time_limit", "rating_e_decay", "stickers_recent_limit", "channels_read_media_period", "call_receive_timeout_ms", "call_ring_timeout_ms", "call_connect_timeout_ms", "call_packet_timeout_ms", "me_url_prefix", "caption_length_max", "message_length_max", "webfile_dc_id"], "additionalProperties": false}, "nearestDc": {"title": "nearestDc", "description": "أقرب مركز بيانات حسب Geo-IP.", "externalDocs": {"url": "https://core.telegram.org/constructor/nearestDc"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["nearestDc"]}, "country": {"type": "string", "x-tl-type": "string", "description": "يتم تحديد رمز البلد بواسطة 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": "تحديث معرف", "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": "معرف الدردشة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "encryptedChatWaiting": {"title": "encryptedChatWaiting", "description": "الدردشة في انتظار موافقة المشارك الثاني.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatWaiting"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatWaiting"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الدردشة", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "التحقق من المبلغ اعتمادا على معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ إنشاء الدردشة", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف منشئ الدردشة", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المشارك الثاني في الدردشة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id"], "additionalProperties": false}, "encryptedChatRequested": {"title": "encryptedChatRequested", "description": "طلب إنشاء دردشة مشفرة.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatRequested"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatRequested"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الدردشة", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تحقق من المبلغ اعتمادا على معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ إنشاء الدردشة", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف منشئ الدردشة", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المشارك الثاني في الدردشة", "x-tl-type": "long", "x-telegram-field-docs": true}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`A = g ^ a mod p`، راجع [ويكيبيديا](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a"], "additionalProperties": false}, "encryptedChat": {"title": "encryptedChat", "description": "الدردشة المشفرة", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChat"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الدردشة", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "التحقق من المبلغ يعتمد على معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ إنشاء الدردشة", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف منشئ الدردشة", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المشارك الثاني في الدردشة", "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": "معرف الدردشة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputEncryptedChat": {"title": "inputEncryptedChat", "description": "[دردشة مشفرة e2e](https://core.telegram.org/api/end-to-end.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedChat"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الدردشة", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "الوصول إلى التجزئة من [encryptedChat](https://core.telegram.org/constructor/encryptedChat.md)، [encryptedChatWaiting](https://core.telegram.org/constructor/encryptedChatWaiting.md) أو [encryptedChatRequested](https://core.telegram.org/constructor/encryptedChatRequested.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id", "access_hash"], "additionalProperties": false}, "encryptedFileEmpty": {"title": "encryptedFileEmpty", "description": "منشئ فارغ، ملف غير موجود.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "encryptedFile": {"title": "encryptedFile", "description": "ملف مشفر.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الملف", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "التحقق من المبلغ اعتمادا على معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "حجم الملف بالبايت", "x-tl-type": "long", "x-telegram-field-docs": true}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد مركز البيانات", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بصمة 32 بت للمفتاح المستخدم لتشفير الملفات", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "size", "dc_id", "key_fingerprint"], "additionalProperties": false}, "inputEncryptedFileEmpty": {"title": "inputEncryptedFileEmpty", "description": "منشئ فارغ.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputEncryptedFileUploaded": {"title": "inputEncryptedFileUploaded", "description": "يضبط ملفًا مشفرًا جديدًا محفوظًا بواسطة الأجزاء باستخدام طريقة upload.saveFilePart.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ملف عشوائي تم إنشاؤه بواسطة العميل", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الأجزاء المحفوظة", "x-telegram-field-docs": true}, "md5_checksum": {"type": "string", "x-tl-type": "string", "description": "في حالة نقل [md5-HASH](https://en.wikipedia.org/wiki/MD5) للملف (المشفر بالفعل)، سيتم فحص محتوى الملف قبل الاستخدام", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بصمة 32 بت للمفتاح المستخدم لتشفير الملف", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "md5_checksum", "key_fingerprint"], "additionalProperties": false}, "inputEncryptedFile": {"title": "inputEncryptedFile", "description": "يضبط الملف المشفر المعاد توجيهه للمرفق.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الملف، قيمة معلمة **id** من [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "التحقق من المجموع، قيمة المعلمة **access_hash** من [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputEncryptedFileBigUploaded": {"title": "inputEncryptedFileBigUploaded", "description": "يعين ملفًا مشفرًا كبيرًا جديدًا (يزيد حجمه عن 10 ميجا بايت)، يتم حفظه على أجزاء باستخدام الطريقة [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileBigUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileBigUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ملف عشوائي، تم إنشاؤه بواسطة العميل", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الأجزاء المحفوظة", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بصمة 32 بت للمفتاح المستخدم لتشفير الملف", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "key_fingerprint"], "additionalProperties": false}, "encryptedMessage": {"title": "encryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedMessage"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "file": {"type": "object", "x-tl-type": "EncryptedFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty", "encryptedFile"]}}, "description": "TL 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": "معرف المستند", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** المعلمة من مُنشئ [document](https://core.telegram.org/constructor/document.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "documentEmpty": {"title": "documentEmpty", "description": "منشئ فارغ، الوثيقة غير موجودة.", "externalDocs": {"url": "https://core.telegram.org/constructor/documentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["documentEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستند أو `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "document": {"title": "document", "description": "وثيقة", "externalDocs": {"url": "https://core.telegram.org/constructor/document"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["document"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستند", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "مجموع الشيكات، يعتمد على معرف الوثيقة", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[مرجع الملف](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ الإنشاء", "x-telegram-field-docs": true}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME النوع", "x-telegram-field-docs": true}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "الحجم", "x-tl-type": "long", "x-telegram-field-docs": true}, "thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "description": "الصور المصغرة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<PhotoSize>"}, "video_thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Тип TL: VideoSize."}, "x-tl-type": "Vector<VideoSize>", "description": "الصور المصغرة للفيديو", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<VideoSize>"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف العاصمة", "x-telegram-field-docs": true}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>", "description": "السمات", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "date", "mime_type", "size", "dc_id", "attributes"], "additionalProperties": false}, "help.support": {"title": "help.support", "description": "معلومات عن دعم المستخدم.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.support"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.support"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "رقم الهاتف", "x-telegram-field-docs": true}, "user": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "المستخدم", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "user"], "additionalProperties": false}, "notifyPeer": {"title": "notifyPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "معرف الرسالة للرموز التعبيرية المتحركة التي تم النقر عليها", "x-telegram-field-docs": true}, "interaction": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "كائن JSON يحتوي على معلومات التفاعل، [انقر هنا لمزيد من المعلومات »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions)", "x-telegram-field-docs": true}}, "required": ["_", "emoticon", "msg_id", "interaction"], "additionalProperties": false}, "sendMessageEmojiInteractionSeen": {"title": "sendMessageEmojiInteractionSeen", "description": "يشاهد المستخدم تفاعلًا تعبيريًا متحركًا أثاره مستخدم آخر، [انقر هنا لمزيد من المعلومات »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions).", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageEmojiInteractionSeen"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageEmojiInteractionSeen"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "sendMessageTextDraftAction": {"title": "sendMessageTextDraftAction", "description": "تستخدمه الروبوتات لتنفيذ [بث الرسائل المباشرة »](https://core.telegram.org/api/bots/ai.md#live-response-streaming).", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageTextDraftAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageTextDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المسودة المباشرة: يستخدمه العملاء الرسوميون لتغيير سلوك العرض بشكل طفيف، راجع [هنا »](https://core.telegram.org/api/bots/ai.md#live-response-streaming) لمزيد من المعلومات. راجع [هنا »](https://core.telegram.org/api/updates.md#updatemessageid-updates) لمزيد من المعلومات حول إلغاء البيانات المكررة العشوائية للمعرفات وتعيين UpdateMessageID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "محتويات المسودة الحية.", "x-telegram-field-docs": true}}, "required": ["_", "random_id", "text"], "additionalProperties": false}, "inputSendMessageRichMessageDraftAction": {"title": "inputSendMessageRichMessageDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSendMessageRichMessageDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown"]}}, "description": "Тип TL: InputRichMessage."}}, "required": ["_", "random_id", "rich_message"], "additionalProperties": false}, "sendMessageRichMessageDraftAction": {"title": "sendMessageRichMessageDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRichMessageDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "random_id", "rich_message"], "additionalProperties": false}, "sendMessageStopDraftAction": {"title": "sendMessageStopDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageStopDraftAction"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "random_id"], "additionalProperties": false}, "contacts.found": {"title": "contacts.found", "description": "تم العثور على المستخدمين حسب سلسلة الاسم الفرعية والبيانات المساعدة.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.found"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.found"]}, "my_results": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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. أو المستخدمين أ أو ب أو ج أو جميع المستخدمين) **و** ليس لدينا اشتراك [Premium](https://core.telegram.org/api/premium.md)، فلن نتمكن من رؤية الطابع الزمني الأخير عبر الإنترنت لهؤلاء المستخدمين (أ، ب، ج، أو جميع المستخدمين)، حتى إذا كان هؤلاء المستخدمون *يشاركونه* معنا.\n\nإذا *شارك* هؤلاء المستخدمون حالتهم الدقيقة عبر الإنترنت معنا، ولكن لا يمكننا رؤيتها للسبب المذكور أعلاه، فسيتم تعيين علامة `by_me` لـ [userStatusRecently](https://core.telegram.org/constructor/userStatusRecently.md)، [userStatusLastWeek](https://core.telegram.org/constructor/userStatusLastWeek.md)، [userStatusLastMonth](https://core.telegram.org/constructor/userStatusLastMonth.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyChatInvite": {"title": "inputPrivacyKeyChatInvite", "description": "ما إذا كان الأشخاص سيتمكنون من دعوتك إلى الدردشات", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneCall": {"title": "inputPrivacyKeyPhoneCall", "description": "ما إذا كنت ستقبل المكالمات الهاتفية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneP2P": {"title": "inputPrivacyKeyPhoneP2P", "description": "ما إذا كان سيتم السماح بالاتصال P2P أثناء مكالمات VoIP", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneP2P"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyForwards": {"title": "inputPrivacyKeyForwards", "description": "ما إذا كانت الرسائل المعاد توجيهها منك ستكون [مجهول](https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyForwards"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyProfilePhoto": {"title": "inputPrivacyKeyProfilePhoto", "description": "ما إذا كان الأشخاص سيتمكنون من رؤية صورة ملفك الشخصي أم لا", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyProfilePhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneNumber": {"title": "inputPrivacyKeyPhoneNumber", "description": "ما إذا كان الأشخاص سيتمكنون من رؤية رقم هاتفك أم لا", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAddedByPhone": {"title": "inputPrivacyKeyAddedByPhone", "description": "ما إذا كان بإمكان الأشخاص إضافتك إلى قائمة جهات الاتصال الخاصة بهم عن طريق رقم هاتفك", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAddedByPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyVoiceMessages": {"title": "inputPrivacyKeyVoiceMessages", "description": "ما إذا كان بإمكان الأشخاص إرسال رسائل صوتية أو مقاطع فيديو مستديرة إليك (مستخدمي [Premium](https://core.telegram.org/api/premium.md) فقط).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyVoiceMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAbout": {"title": "inputPrivacyKeyAbout", "description": "ما إذا كان بإمكان الأشخاص رؤية سيرتك الذاتية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAbout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyBirthday": {"title": "inputPrivacyKeyBirthday", "description": "ما إذا كان يمكن للمستخدم رؤية عيد ميلادنا.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyBirthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyStarGiftsAutoSave": {"title": "inputPrivacyKeyStarGiftsAutoSave", "description": "سيتم عرض ما إذا تم استلام [gifts](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": "معرفات الدردشة المسموح بها (إما معرف [chat](https://core.telegram.org/constructor/chat.md) أو معرف [supergroup](https://core.telegram.org/constructor/channel.md)، حرفيًا بالطريقة التي يتم تلقيها بها في المنشئ (i.e. على عكس معرفات الروبوت API، هنا يجب التعامل مع معرفات المجموعة والمجموعة الفائقة بنفس الطريقة)).", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "inputPrivacyValueDisallowChatParticipants": {"title": "inputPrivacyValueDisallowChatParticipants", "description": "عدم السماح للمشاركين فقط في محادثات معينة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "معرفات الدردشة غير المسموح بها (إما معرف [chat](https://core.telegram.org/constructor/chat.md) أو معرف [supergroup](https://core.telegram.org/constructor/channel.md)، حرفيًا بالطريقة التي يتم تلقيها بها في المُنشئ (i.e. على عكس معرفات الروبوت API، هنا يجب التعامل مع معرفات المجموعة والمجموعة الفائقة بنفس الطريقة)).", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "inputPrivacyValueAllowCloseFriends": {"title": "inputPrivacyValueAllowCloseFriends", "description": "السماح فقط [للأصدقاء المقربين »](https://core.telegram.org/api/privacy.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowCloseFriends"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowCloseFriends"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowPremium": {"title": "inputPrivacyValueAllowPremium", "description": "السماح فقط للمستخدمين الذين لديهم [اشتراك Premium »](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 المعرف](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": "التكوين للحصول على ترخيص ثنائي العامل", "externalDocs": {"url": "https://core.telegram.org/constructor/account.password"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.password"]}, "has_recovery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان المستخدم قد تم تكوين طريقة استرداد أم لا", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "has_secure_values": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان برقية [جواز السفر](https://core.telegram.org/passport.md) ممكّنة أم لا", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_password": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان المستخدم لديه كلمة مرور", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "current_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "خوارزمية [KDF لـ SRP المصادقة الثنائية](https://core.telegram.org/api/srp.md) لكلمة المرور الحالية", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?PasswordKdfAlgo"}, "srp_B": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Srp B معلمة لـ [SRP إذن](https://core.telegram.org/api/srp.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?bytes"}, "srp_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معلمة معرف Srp لـ [SRP الترخيص](https://core.telegram.org/api/srp.md)", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "hint": {"type": "string", "x-tl-type": "string", "description": "تلميح نصي لكلمة المرور", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "email_unconfirmed_pattern": {"type": "string", "x-tl-type": "string", "description": "لا يزال [البريد الإلكتروني لاستعادة كلمة المرور](https://core.telegram.org/api/srp.md#email-verification) بالنمط](https://core.telegram.org/api/pattern.md) المحدد في انتظار التحقق", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "new_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "خوارزمية [KDF لـ SRP المصادقة الثنائية](https://core.telegram.org/api/srp.md) لاستخدامها عند إنشاء كلمات مرور جديدة", "x-telegram-field-docs": true}, "new_secure_algo": {"type": "object", "x-tl-type": "SecurePasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown", "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "securePasswordKdfAlgoSHA512"]}}, "description": "خوارزمية KDF للتليجرام [جواز السفر](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": "ستتم إزالة كلمة مرور المصادقة الثنائية تلقائيًا في هذا التاريخ، ما لم يقم المستخدم بإلغاء العملية", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "login_email_pattern": {"type": "string", "x-tl-type": "string", "description": "تم تكوين بريد إلكتروني لتسجيل الدخول تم التحقق منه باستخدام [pattern](https://core.telegram.org/api/pattern.md) المحدد", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?string"}}, "required": ["_", "new_algo", "new_secure_algo", "secure_random"], "additionalProperties": false}, "account.passwordSettings": {"title": "account.passwordSettings", "description": "المعلومات الخاصة المرتبطة بمعلومات كلمة المرور (البريد الإلكتروني للاسترداد، البرقية [معلومات جواز السفر](https://core.telegram.org/passport.md) وما إلى ذلك)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passwordSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passwordSettings"]}, "email": {"type": "string", "x-tl-type": "string", "description": "[البريد الإلكتروني لاسترداد 2FA](https://core.telegram.org/api/srp.md#email-verification)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "secure_settings": {"type": "object", "x-tl-type": "SecureSecretSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}}, "description": "برقية [إعدادات جواز السفر](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?SecureSecretSettings"}}, "required": ["_"], "additionalProperties": false}, "account.passwordInputSettings": {"title": "account.passwordInputSettings", "description": "إعدادات إعداد كلمة المرور الجديدة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passwordInputSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passwordInputSettings"]}, "new_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "[SRP خوارزمية](https://core.telegram.org/api/srp.md) للاستخدام", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PasswordKdfAlgo"}, "new_password_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[تجزئة كلمة المرور المحسوبة](https://core.telegram.org/api/srp.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?bytes"}, "hint": {"type": "string", "x-tl-type": "string", "description": "تلميح نصي لكلمة المرور", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "email": {"type": "string", "x-tl-type": "string", "description": "البريد الإلكتروني لاستعادة كلمة المرور", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "new_secure_settings": {"type": "object", "x-tl-type": "SecureSecretSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}}, "description": "برقية [إعدادات جواز السفر](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": "يجب أن يتطابق البريد الإلكتروني الذي تم إرسال رمز الاسترداد إليه مع هذا [pattern](https://core.telegram.org/api/pattern.md).", "x-telegram-field-docs": true}}, "required": ["_", "email_pattern"], "additionalProperties": false}, "receivedNotifyMessage": {"title": "receivedNotifyMessage", "description": "معرف الرسالة، التي تم إلغاء إشعارات PUSH لها.", "externalDocs": {"url": "https://core.telegram.org/constructor/receivedNotifyMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["receivedNotifyMessage"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة، التي تم إلغاء إشعارات PUSH لها", "x-telegram-field-docs": true}, "flags": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "محفوظة للاستخدام في المستقبل", "x-telegram-field-docs": true}}, "required": ["_", "id", "flags"], "additionalProperties": false}, "chatInviteExported": {"title": "chatInviteExported", "description": "دعوة الدردشة المصدرة", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteExported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteExported"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا تم إلغاء دعوة الدردشة هذه", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "permanent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت دعوة الدردشة هذه ليس لها انتهاء صلاحية", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان يجب الموافقة على المستخدمين الذين يستوردون رابط الدعوة هذا للانضمام إلى القناة أو المجموعة", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "link": {"type": "string", "x-tl-type": "string", "description": "رابط دعوة الدردشة", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المسؤول الذي أنشأ دعوة الدردشة هذه", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "متى تم إنشاء دعوة الدردشة هذه", "x-telegram-field-docs": true}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "متى تم آخر تعديل لدعوة الدردشة هذه", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "متى تنتهي صلاحية دعوة الدردشة هذه", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "usage_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لعدد المستخدمين الذين يمكنهم الانضمام باستخدام هذا الرابط", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "usage": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "كم عدد المستخدمين الذين انضموا باستخدام هذا الرابط", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "requested": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد المستخدمين الذين استخدموا هذا الرابط بالفعل للانضمام", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?int"}, "subscription_expired": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة لـ [اشتراكات Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions)، تحتوي على عدد أعضاء الدردشة الذين انضموا بالفعل إلى الدردشة باستخدام الرابط، ولكنهم غادروا بالفعل بسبب انتهاء اشتراكهم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?int"}, "title": {"type": "string", "x-tl-type": "string", "description": "وصف مخصص لرابط الدعوة، مرئي فقط للمسؤولين", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "subscription_pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}}, "description": "بالنسبة لـ [اشتراكات Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions)، تحتوي على أسعار الاشتراك الذي يجب على المستخدم تفعيله للانضمام إلى القناة الخاصة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?StarsSubscriptionPricing"}}, "required": ["_", "link", "admin_id", "date"], "additionalProperties": false}, "chatInvitePublicJoinRequests": {"title": "chatInvitePublicJoinRequests", "description": "يُستخدم في التحديثات وفي سجل القناة للإشارة إلى الوقت الذي يطلب فيه المستخدم الانضمام أو قد انضم إلى [مجموعة المناقشة](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group)", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePublicJoinRequests"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePublicJoinRequests"]}}, "required": ["_"], "additionalProperties": false}, "chatInviteAlready": {"title": "chatInviteAlready", "description": "لقد انضم المستخدم بالفعل إلى هذه الدردشة", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteAlready"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteAlready"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "الدردشة المرتبطة بالدعوة", "x-telegram-field-docs": true}}, "required": ["_", "chat"], "additionalProperties": false}, "chatInvite": {"title": "chatInvite", "description": "معلومات دعوة الدردشة", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvite"]}, "channel": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كانت هذه [قناة/مجموعة خارقة](https://core.telegram.org/api/channel.md) أو [مجموعة عادية](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كانت هذه [قناة](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "public": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت هذه [قناة/مجموعة عملاقة](https://core.telegram.org/api/channel.md) عامة", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كانت هذه [supergroup](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": "دردشة/supergroup/صورة القناة", "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": "[معرف لوحة ألوان الملف الشخصي](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": "بالنسبة لـ [اشتراكات تيليجرام ستار »](https://core.telegram.org/api/stars.md#star-subscriptions) معرف استمارة الدفع الخاصة بالاشتراك.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?long"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "يصف [رمز التحقق من الروبوت »](https://core.telegram.org/api/bots/verification.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?BotVerification"}}, "required": ["_", "title", "photo", "participants_count", "color"], "additionalProperties": false}, "chatInvitePeek": {"title": "chatInvitePeek", "description": "دعوة للدردشة تسمح أيضًا بإلقاء نظرة خاطفة على المجموعة لقراءة الرسائل دون الانضمام إليها.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePeek"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePeek"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "معلومات الدردشة", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "سيتم إلغاء حق الوصول المجهول لهذه المجموعة للقراءة فقط في هذا التاريخ", "x-telegram-field-docs": true}}, "required": ["_", "chat", "expires"], "additionalProperties": false}, "inputStickerSetEmpty": {"title": "inputStickerSetEmpty", "description": "منشئ فارغ\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetID": {"title": "inputStickerSetID", "description": "مجموعة الملصقات حسب الهوية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputStickerSetShortName": {"title": "inputStickerSetShortName", "description": "مجموعة ملصقات بالاسم المختصر، من [رابط عميق لمجموعة الملصقات »](https://core.telegram.org/api/links.md#stickerset-links)\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetShortName"]}, "short_name": {"type": "string", "x-tl-type": "string", "description": "اسم قصير من [رابط عميق لمجموعة الملصقات »](https://core.telegram.org/api/links.md#stickerset-links)", "x-telegram-field-docs": true}}, "required": ["_", "short_name"], "additionalProperties": false}, "inputStickerSetAnimatedEmoji": {"title": "inputStickerSetAnimatedEmoji", "description": "مجموعة ملصقات الرموز التعبيرية المتحركة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmoji"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetDice": {"title": "inputStickerSetDice", "description": "تستخدم لجلب [ملصقات النرد المتحركة](https://core.telegram.org/api/dice.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية مدعومة حاليًا 🏀 و 🎲 و 🎯", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputStickerSetAnimatedEmojiAnimations": {"title": "inputStickerSetAnimatedEmojiAnimations", "description": "مجموعة ملصقات تفاعلية للرموز التعبيرية المتحركة (تحتوي على رسوم متحركة يتم تشغيلها عندما ينقر المستخدم على رمز تعبيري متحرك محدد)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmojiAnimations"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetPremiumGifts": {"title": "inputStickerSetPremiumGifts", "description": "الملصقات التي سيتم عرضها عند تلقي اشتراك Telegram Premium كهدية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetPremiumGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetPremiumGifts"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiGenericAnimations": {"title": "inputStickerSetEmojiGenericAnimations", "description": "مجموعة ملصقات رسوم متحركة عامة تحتوي على رسوم متحركة لتشغيلها عند [الرد على الرسائل باستخدام رمز تعبيري عادي بدون رسوم متحركة مخصصة](https://core.telegram.org/api/reactions.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiGenericAnimations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiGenericAnimations"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiDefaultStatuses": {"title": "inputStickerSetEmojiDefaultStatuses", "description": "الافتراضي [حالة الرموز التعبيرية المخصصة](https://core.telegram.org/api/emoji-status.md) مجموعة الملصقات", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiDefaultStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiDefaultStatuses"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiDefaultTopicIcons": {"title": "inputStickerSetEmojiDefaultTopicIcons", "description": "الافتراضي [مجموعة ملصقات emoji](https://core.telegram.org/api/custom-emoji.md) المخصصة لـ [أيقونات موضوع المنتدى](https://core.telegram.org/api/forum.md#forum-topics)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiDefaultTopicIcons"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiChannelDefaultStatuses": {"title": "inputStickerSetEmojiChannelDefaultStatuses", "description": "الافتراضي [حالة الرموز التعبيرية المخصصة](https://core.telegram.org/api/emoji-status.md) مجموعة ملصقات لحالات القناة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiChannelDefaultStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiChannelDefaultStatuses"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetTonGifts": {"title": "inputStickerSetTonGifts", "description": "TON مجموعة ملصقات الهدايا.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetTonGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetTonGifts"]}}, "required": ["_"], "additionalProperties": false}, "stickerSet": {"title": "stickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSet"]}, "archived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "official": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "channel_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "installed_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "short_name": {"type": "string", "x-tl-type": "string"}, "thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "x-tl-flag": "flags.4?Vector<PhotoSize>"}, "thumb_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "title", "short_name", "count", "hash"], "additionalProperties": false}, "messages.stickerSet": {"title": "messages.stickerSet", "description": "مجموعة الملصقات والملصقات بداخله", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSet"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSet"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "مجموعة الملصقات", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "معلومات الرموز التعبيرية للملصقات", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}}, "description": "Тип TL: StickerKeyword."}, "x-tl-type": "Vector<StickerKeyword>", "description": "الكلمات الرئيسية لبعض أو كل ملصق في مجموعة الملصقات.", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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.، جعل لوحة المفاتيح أصغر إذا كان هناك صفين فقط من الأزرار). إذا لم يتم تعيينها، فستكون لوحة المفاتيح المخصصة دائمًا بنفس ارتفاع لوحة المفاتيح القياسية للتطبيق.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "single_use": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يطلب من العملاء إخفاء لوحة المفاتيح بمجرد استخدامها. ستظل لوحة المفاتيح متاحة، لكن العملاء سيعرضون تلقائيًا لوحة المفاتيح المعتادة للأحرف في الدردشة - يمكن للمستخدم الضغط على زر خاص في حقل الإدخال لرؤية لوحة المفاتيح المخصصة مرة أخرى.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "استخدم هذه المعلمة إذا كنت تريد إظهار لوحة المفاتيح لمستخدمين محددين فقط. الأهداف: 1) المستخدمين الذين تم ذكرهم @ في نص كائن الرسالة؛ 2) إذا كانت رسالة البوت عبارة عن رد (يحتوي على reply_to_message_id)، مرسل الرسالة الأصلية.  مثال: يطلب أحد المستخدمين تغيير لغة الروبوت، فيرد الروبوت على الطلب باستخدام لوحة مفاتيح لتحديد اللغة الجديدة. لا يرى المستخدمون الآخرون في المجموعة لوحة المفاتيح.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "persistent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يطلب من العملاء إظهار لوحة المفاتيح دائمًا عندما تكون لوحة المفاتيح العادية مخفية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonRow"]}}, "description": "Тип TL: KeyboardButtonRow."}, "x-tl-type": "Vector<KeyboardButtonRow>", "description": "صف الزر", "x-telegram-field-docs": true}, "placeholder": {"type": "string", "x-tl-type": "string", "description": "العنصر النائب الذي سيتم عرضه في حقل الإدخال عندما تكون لوحة المفاتيح نشطة؛ 1-64 حرفا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}}, "required": ["_", "rows"], "additionalProperties": false}, "replyInlineMarkup": {"title": "replyInlineMarkup", "description": "يمثل لوحة مفاتيح مضمنة", "externalDocs": {"url": "https://core.telegram.org/constructor/replyInlineMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyInlineMarkup"]}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardInlineButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardInlineButtonRow"]}}, "description": "Тип TL: KeyboardInlineButtonRow."}, "x-tl-type": "Vector<KeyboardInlineButtonRow>", "description": "بوت أو صفوف لوحة المفاتيح المضمنة", "x-telegram-field-docs": true}}, "required": ["_", "rows"], "additionalProperties": false}, "messageEntityUnknown": {"title": "messageEntityUnknown", "description": "كيان رسالة غير معروف\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnknown"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityMention": {"title": "messageEntityMention", "description": "كيان الرسالة [ذكر](https://core.telegram.org/api/mentions.md) مستخدم بواسطة `@username`؛ يمكن أيضًا استخدام [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md) لذكر المستخدمين حسب معرفهم.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityMention"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityMention"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityHashtag": {"title": "messageEntityHashtag", "description": "**\\#هاشتاج** كيان الرسالة\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityHashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityHashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBotCommand": {"title": "messageEntityBotCommand", "description": "كيان الرسالة الذي يمثل الروبوت/الأمر\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBotCommand"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBotCommand"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUrl": {"title": "messageEntityUrl", "description": "Message entity representing an in-text url: <https://google.com>; for [text urls](https://google.com), use [messageEntityTextUrl](https://core.telegram.org/constructor/messageEntityTextUrl.md).\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUrl"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityEmail": {"title": "messageEntityEmail", "description": "كيان الرسالة يمثل <email@example.com>.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityEmail"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBold": {"title": "messageEntityBold", "description": "يمثل كيان الرسالة **نص غامق**.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBold"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBold"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityItalic": {"title": "messageEntityItalic", "description": "يمثل كيان الرسالة *نص مائل*.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityItalic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityItalic"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCode": {"title": "messageEntityCode", "description": "كيان الرسالة يمثل `codeblock`.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCode"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityPre": {"title": "messageEntityPre", "description": "يمثل كيان الرسالة `codeblock` منسق مسبقًا، مما يسمح للمستخدم بتحديد لغة برمجة لكتلة التعليمات البرمجية.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPre"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPre"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "language": {"type": "string", "x-tl-type": "string", "description": "لغة البرمجة للكود", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "language"], "additionalProperties": false}, "messageEntityTextUrl": {"title": "messageEntityTextUrl", "description": "Message entity representing a [text url](https://google.com): for in-text urls like <https://google.com> use [messageEntityUrl](https://core.telegram.org/constructor/messageEntityUrl.md).\n\nلاحظ أنه يجب عرض نافذة تأكيد إضافية منبثقة تحتوي على URL الكامل للمستخدم قبل فتح هذا الرابط، ما لم يستوفي النطاق الشروط المحددة في [وثائق القائمة البيضاء للنطاق »](https://core.telegram.org/api/config.md#whitelisted-domains).\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityTextUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityTextUrl"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "الفعلي URL", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "url"], "additionalProperties": false}, "messageEntityMentionName": {"title": "messageEntityMentionName", "description": "كيان الرسالة الذي يمثل [إشارة المستخدم](https://core.telegram.org/api/mentions.md): لإنشاء *إشارة، استخدم [inputMessageEntityMentionName](https://core.telegram.org/constructor/inputMessageEntityMentionName.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم المذكور", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "inputMessageEntityMentionName": {"title": "inputMessageEntityMentionName", "description": "كيان الرسالة الذي يمكن استخدامه لإنشاء مستخدم [إشارة المستخدم](https://core.telegram.org/api/mentions.md): الإشارات المستلمة تستخدم المُنشئ [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md)، بدلاً من ذلك.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "معرف المستخدم المذكور", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "messageEntityPhone": {"title": "messageEntityPhone", "description": "كيان الرسالة الذي يمثل رقم الهاتف.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPhone"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCashtag": {"title": "messageEntityCashtag", "description": "كيان الرسالة الذي يمثل **$cashtag**.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUnderline": {"title": "messageEntityUnderline", "description": "كيان الرسالة يمثل النص الذي تحته خط.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnderline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnderline"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityStrike": {"title": "messageEntityStrike", "description": "كيان الرسالة الذي يمثل نص <del>يتوسطه خط</del>.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityStrike"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityStrike"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBankCard": {"title": "messageEntityBankCard", "description": "يشير إلى رقم بطاقة الائتمان", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBankCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBankCard"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntitySpoiler": {"title": "messageEntitySpoiler", "description": "كيان الرسالة يمثل المفسد\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntitySpoiler"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntitySpoiler"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCustomEmoji": {"title": "messageEntityCustomEmoji", "description": "يمثل رمزًا تعبيريًا مخصصًا.\nلاحظ أن هذا الكيان يجب أن يغلف رمزًا تعبيريًا عاديًا واحدًا بالضبط (الموجود في [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji.md).`alt`) في النص ذي الصلة، وإلا فسوف يتجاهله الخادم.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCustomEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCustomEmoji"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف مستند [الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md)، استخدم [messages.getCustomEmojiDocuments](https://core.telegram.org/method/messages.getCustomEmojiDocuments.md) لجلب الرسوم المتحركة للرموز التعبيرية والرموز التعبيرية الفعلية التي تمثلها.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "document_id"], "additionalProperties": false}, "messageEntityBlockquote": {"title": "messageEntityBlockquote", "description": "كيان الرسالة الذي يمثل اقتباسًا جماعيًا.\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBlockquote"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBlockquote"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان الاقتباس مطويًا بشكل افتراضي.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityFormattedDate": {"title": "messageEntityFormattedDate", "description": "يمثل نقطة زمنية محددة، ويتم عرضها على النحو المحدد [هنا »](https://core.telegram.org/api/entities.md#date-entities)\n\nجميع الأعلام اختيارية، مع القيود التالية:\n\n- `relative` لا يمكن دمجه مع أي علم آخر\n- لا يمكن الجمع بين `short_time` و`long_time` مع بعضهما البعض\n- لا يمكن الجمع بين `short_date` و`long_date` مع بعضهما البعض\n\nإذا تم دمج أي من الأعلام، يكون ترتيب عرضها في النص كما يلي:\n\n- `day_of_week`\n- `short_time`/`long_time`\n- `short_date`/`long_date`", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityFormattedDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityFormattedDate"]}, "relative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة التعيين، قم بتقديم تاريخ نسبي، راجع [هنا »](https://core.telegram.org/api/entities.md#date-entities) لمزيد من المعلومات. لا يمكن دمجها مع أي من الأعلام الأخرى.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "short_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعرض الوقت بتنسيق قصير: الساعات والدقائق، وفقًا لإعدادات اللغة الخاصة بالمستخدم؛ لا يمكن دمجه مع `long_time`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "long_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعرض الوقت بتنسيق طويل: الساعات والدقائق والثواني وربما المنطقة الزمنية، وفقًا لإعدادات اللغة الخاصة بالمستخدم؛ لا يمكن دمجه مع `short_time`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "short_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعرض الوقت بتنسيق قصير: الشهر والتاريخ (والسنة، إذا كان مختلفًا عن الحالي)، كل ذلك وفقًا لإعدادات اللغة الخاصة بالمستخدم؛ لا يمكن دمجه مع `long_date`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "long_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعرض الوقت بتنسيق طويل: دائمًا الشهر والتاريخ والسنة، كل ذلك وفقًا لإعدادات اللغة الخاصة بالمستخدم؛ لا يمكن دمجه مع `short_date`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "day_of_week": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعرض يوم الأسبوع وفقًا لإعدادات اللغة الخاصة بالمستخدم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "التاريخ كطابع زمني UNIX: تتراوح القيمة المسموح بها من `0` إلى التاريخ الحالي بالإضافة إلى 1098 يومًا (`time()+1098*86400`).", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "date"], "additionalProperties": false}, "messageEntityDiffInsert": {"title": "messageEntityDiffInsert", "description": "يمثل إضافة فرق: قم بعرضها ببساطة عن طريق <u>وضع خط تحت</u> القسم المحدد وتلوينه باللون الأخضر، راجع [هنا »](https://core.telegram.org/api/entities.md#diff-entities) لمزيد من المعلومات حول كيفية عرض الكيانات المختلفة.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffInsert"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffInsert"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityDiffReplace": {"title": "messageEntityDiffReplace", "description": "يمثل بديلاً مختلفًا، اجعله كما يلي:\n\n- أدخل `old_text` في النص الموجود في الإزاحة `offset`، ثم <u>ضع خطًا</u> فيه ثم قم بتلوينه باللون الأحمر: لاحظ أن هذا الإدراج لا يؤثر على إزاحات الكيانات التي تأتي بعده.\n- <u>وضع خط تحت</u> القسم المحدد بـ `offset` و`limit` وتلوينه باللون الأخضر.\n\nراجع [هنا »](https://core.telegram.org/api/entities.md#diff-entities) لمزيد من المعلومات حول كيفية عرض الكيانات المختلفة.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffReplace"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffReplace"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "old_text": {"type": "string", "x-tl-type": "string", "description": "قطعة النص التي تمت إزالتها.", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "old_text"], "additionalProperties": false}, "messageEntityDiffDelete": {"title": "messageEntityDiffDelete", "description": "يمثل حذفًا للفرق: قم بعرضه ببساطة عن طريق <u>وضع خط تحت</u> القسم المحدد وتلوينه باللون الأحمر، راجع [هنا »](https://core.telegram.org/api/entities.md#diff-entities) لمزيد من المعلومات حول كيفية عرض الكيانات المختلفة.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffDelete"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffDelete"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "طول كيان الرسالة داخل الرسالة (في [UTF-16 وحدة رمز](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityTonAddress": {"title": "messageEntityTonAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityTonAddress"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "inputChannelEmpty": {"title": "inputChannelEmpty", "description": "يمثل غياب القناة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChannel": {"title": "inputChannel", "description": "يمثل قناة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف القناة", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول مأخوذة من منشئ [channel](https://core.telegram.org/constructor/channel.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputChannelFromMessage": {"title": "inputChannelFromMessage", "description": "يحدد قناة [min](https://core.telegram.org/api/min.md) التي تمت مشاهدتها في رسالة معينة لدردشة معينة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الدردشة التي شوهدت فيها القناة", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة في الدردشة التي تمت مشاهدة القناة فيها", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف القناة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "channel_id"], "additionalProperties": false}, "contacts.resolvedPeer": {"title": "contacts.resolvedPeer", "description": "حل النظير", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.resolvedPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.resolvedPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "النظير", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "بداية النطاق (معرف الرسالة)", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "نهاية النطاق (معرف الرسالة)", "x-telegram-field-docs": true}}, "required": ["_", "min_id", "max_id"], "additionalProperties": false}, "updates.channelDifferenceEmpty": {"title": "updates.channelDifferenceEmpty", "description": "لا توجد تحديثات جديدة", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifferenceEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifferenceEmpty"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هناك المزيد من التحديثات التي يجب جلبها (خطأ دائمًا)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الأحدث [PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "من المفترض أن يقوم العملاء بإعادة جلب فرق القناة بعد انقضاء ثواني المهلة، إذا كان المستخدم [يشاهد الدردشة حاليًا، انظر هنا »](https://core.telegram.org/api/updates.md#subscribing-to-updates-of-channels-supergroups) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "pts"], "additionalProperties": false}, "updates.channelDifferenceTooLong": {"title": "updates.channelDifferenceTooLong", "description": "ما تم تمريره `pts` قديم جدًا: تم حذف تحديث واحد أو أكثر بدءًا من PTS المحدد من مربع الرسائل الخاص بهذه القناة.\n\nبالنسبة للمجموعات الكبرى/القنوات، يحدث هذا عادةً للتحديثات الأقدم من `latestPts - 100000` (على الرغم من عدم الاعتماد على هذه القيمة، فهي تفاصيل تنفيذ من جانب الخادم قد تتغير، ويجب ألا يستخدمها العملاء بأي شكل من الأشكال).", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifferenceTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifferenceTooLong"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هناك المزيد من التحديثات التي يجب جلبها (تعيين دائمًا)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "من المفترض أن يقوم العملاء بإعادة جلب فرق القناة بعد انقضاء ثواني المهلة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "dialog": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "مربع حوار يحتوي على أحدث [PTS](https://core.telegram.org/api/updates.md) التي يمكن استخدامها لإعادة ضبط حالة القناة", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "أحدث الرسائل (لا تبدأ من `pts` الماضية، فقط أحدث الرسائل).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات من الرسائل", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "ما إذا كان هناك المزيد من التحديثات التي سيتم جلبها باستخدام getDifference، بدءًا من `pts` المقدم", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md) الذي يمكنك من خلاله البدء في الحصول على التحديثات في المرة القادمة", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "من المفترض أن يقوم العملاء بإعادة جلب فرق القناة بعد انقضاء ثواني المهلة، إذا كان المستخدم [يشاهد الدردشة حاليًا، انظر هنا »](https://core.telegram.org/api/updates.md#subscribing-to-updates-of-channels-supergroups) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "رسائل جديدة", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "تحديثات أخرى", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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) محدد من خلال [قسم التعليقات](https://core.telegram.org/api/threads.md#channel-comments) في القناة.", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsMentions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsMentions"]}, "q": {"type": "string", "x-tl-type": "string", "description": "التصفية حسب اسم المستخدم أو اسم المستخدم", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ابحث فقط عن المستخدمين الذين شاركوا في هذا [الموضوع](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "channels.channelParticipants": {"title": "channels.channelParticipants", "description": "يمثل العديد من المشاركين في القنوات", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipants"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد المشاركين الذين يتوافقون مع الاستعلام المحدد", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "x-tl-type": "Vector<ChannelParticipant>", "description": "المشاركون", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "No new saved gifs were found", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedGifsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedGifsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.savedGifs": {"title": "messages.savedGifs", "description": "صور متحركة محفوظة", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedGifs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedGifs"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "gifs": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "List of saved gifs", "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": "معرف النتيجة", "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 من النتيجة", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "thumb": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "الصورة المصغرة للنتيجة", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?InputWebDocument"}, "content": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "محتويات النتيجة", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?InputWebDocument"}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "رسالة لإرسالها عند تحديد النتيجة", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "inputBotInlineResultPhoto": {"title": "inputBotInlineResultPhoto", "description": "الصورة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultPhoto"]}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف النتيجة", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "نوع النتيجة (راجع [البوت 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": "معرف النتيجة", "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": "معرف النتيجة", "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": "معرف الاستعلام", "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 أو في واجهة المستخدم الأصلية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "message": {"type": "string", "x-tl-type": "string", "description": "تنبيه للعرض", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL للفتح", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إلى متى يجب تخزين هذه الإجابة مؤقتًا؟", "x-telegram-field-docs": true}}, "required": ["_", "cache_time"], "additionalProperties": false}, "messages.messageEditData": {"title": "messages.messageEditData", "description": "تحرير بيانات الرسالة للوسائط", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageEditData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageEditData"]}, "caption": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تسمية توضيحية للوسائط، إذا كان من الممكن تحرير التسمية التوضيحية للوسائط المحددة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "inputBotInlineMessageID": {"title": "inputBotInlineMessageID", "description": "يمثل رسالة مضمنة مرسلة من منظور الروبوت (المنشئ القديم)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineMessageID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف DC لاستخدامه عند العمل مع هذه الرسالة المضمنة", "x-telegram-field-docs": true}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الرسالة، يحتوي على معرف المالك (32 بت، القديم) ومعرف الرسالة، المستخدم فقط للتوافق العكسي لـ Bot API مع معرف المستخدم 32 بت.", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "الوصول إلى تجزئة الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "id", "access_hash"], "additionalProperties": false}, "inputBotInlineMessageID64": {"title": "inputBotInlineMessageID64", "description": "يمثل رسالة مضمنة مرسلة من منظور الروبوت", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineMessageID64"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID64"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف DC لاستخدامه عند العمل مع هذه الرسالة المضمنة", "x-telegram-field-docs": true}, "owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف صاحب هذه الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "الوصول إلى تجزئة الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "owner_id", "id", "access_hash"], "additionalProperties": false}, "inlineBotSwitchPM": {"title": "inlineBotSwitchPM", "description": "طلب الروبوت من المستخدم مراسلته على انفراد", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotSwitchPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotSwitchPM"]}, "text": {"type": "string", "x-tl-type": "string", "description": "نص للزر الذي يحول المستخدم إلى محادثة خاصة مع الروبوت ويرسل للروبوت رسالة بدء مع المعلمة `start_parameter` (يمكن أن يكون فارغًا)", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "المعلمة ل `/start parameter`", "x-telegram-field-docs": true}}, "required": ["_", "text", "start_param"], "additionalProperties": false}, "messages.peerDialogs": {"title": "messages.peerDialogs", "description": "معلومات الحوار لأقران متعددة", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.peerDialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.peerDialogs"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "معلومات الحوار", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "الرسائل المذكورة في معلومات الحوار", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "الأكثر استخدامًا [تطبيقات Mini Bot الرئيسية](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": "معرفات مجموعات الملصقات المميزة الجديدة", "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": "مجموعة ملصقات تحتوي على ملصق واحد كمعاينة", "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": "الإزاحة بواسطة المحور السيني مقاسة بعرض القناع ومقاسه حسب حجم الوجه، من اليسار إلى اليمين. (على سبيل المثال، -1.0 سوف يضع القناع على يسار موضع القناع الافتراضي)", "x-telegram-field-docs": true}, "y": {"type": "number", "format": "double", "x-tl-type": "double", "description": "الإزاحة بواسطة المحور Y مقاسة بعرض القناع ومقاسه حسب حجم الوجه، من اليسار إلى اليمين. (على سبيل المثال، -1.0 سيضع القناع أسفل موضع القناع الافتراضي مباشرة)", "x-telegram-field-docs": true}, "zoom": {"type": "number", "format": "double", "x-tl-type": "double", "description": "معامل تحجيم القناع. (على سبيل المثال، 2.0 يعني حجمًا مضاعفًا)", "x-telegram-field-docs": true}}, "required": ["_", "n", "x", "y", "zoom"], "additionalProperties": false}, "inputStickeredMediaPhoto": {"title": "inputStickeredMediaPhoto", "description": "صورة مع الملصقات المرفقة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "الصورة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputStickeredMediaDocument": {"title": "inputStickeredMediaDocument", "description": "وثيقة مع الملصقات المرفقة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "الوثيقة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "game": {"title": "game", "type": "object", "properties": {"_": {"type": "string", "enum": ["game"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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(ملفات) بعيد", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileLocation"]}, "url": {"type": "string", "x-tl-type": "string", "description": "HTTP URL من الملف", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "url", "access_hash"], "additionalProperties": false}, "inputWebFileGeoPointLocation": {"title": "inputWebFileGeoPointLocation", "description": "يُستخدم لتنزيل صورة أنشأها الخادم مع معاينة الخريطة من [geoPoint](https://core.telegram.org/constructor/geoPoint.md)، راجع [مستندات ملف الويب لمزيد من المعلومات »](https://core.telegram.org/api/files.md#downloading-webfiles).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileGeoPointLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileGeoPointLocation"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "تم إنشاؤها من معلمات `lat` و`long` و`accuracy_radius` الخاصة بـ [geoPoint](https://core.telegram.org/constructor/geoPoint.md)", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول إلى [geoPoint](https://core.telegram.org/constructor/geoPoint.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عرض الخريطة بالبكسل قبل تطبيق المقياس؛ 16-1024", "x-telegram-field-docs": true}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ارتفاع الخريطة بالبكسل قبل تطبيق المقياس؛ 16-1024", "x-telegram-field-docs": true}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "مستوى تكبير الخريطة؛ 13-20", "x-telegram-field-docs": true}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "مقياس الخريطة؛ 1-3", "x-telegram-field-docs": true}}, "required": ["_", "geo_point", "access_hash", "w", "h", "zoom", "scale"], "additionalProperties": false}, "inputWebFileAudioAlbumThumbLocation": {"title": "inputWebFileAudioAlbumThumbLocation", "description": "يستخدم لتنزيل غلاف الألبوم لأي ملف موسيقى باستخدام [upload.getWebFile](https://core.telegram.org/method/upload.getWebFile.md)، راجع [مستندات ملف الويب لمزيد من المعلومات »](https://core.telegram.org/api/files.md#downloading-webfiles).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileAudioAlbumThumbLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileAudioAlbumThumbLocation"]}, "small": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يُستخدم لإرجاع صورة مصغرة بدقة `100x100` (بدلاً من الدقة الافتراضية `600x600`)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "الملف الصوتي المعني: يجب توفير NOT في الدردشات السرية، وتوفير الحقلين `title` و`performer` بدلاً من ذلك.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputDocument"}, "title": {"type": "string", "x-tl-type": "string", "description": "عنوان الأغنية: يجب استخدامه فقط في الدردشات السرية، وفي الدردشات العادية تقدم `document` بدلاً من ذلك، حيث أن لها حدود معدل أكثر تراخيًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "performer": {"type": "string", "x-tl-type": "string", "description": "مؤدي الأغنية: يجب استخدامه فقط في الدردشات السرية، وفي الدردشات العادية يتم توفير `document` بدلاً من ذلك، حيث أن لها حدود معدل أكثر تراخيًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_"], "additionalProperties": false}, "upload.webFile": {"title": "upload.webFile", "description": "يمثل جزءًا من [HTTP ملف ويب](https://core.telegram.org/api/files.md) تم تنزيله عبر خوادم MTProto الآمنة في telegram", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.webFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.webFile"]}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "حجم الملف", "x-telegram-field-docs": true}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "نوع التمثيل الصامت", "x-telegram-field-docs": true}, "file_type": {"type": "object", "x-tl-type": "storage.FileType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]}}, "description": "نوع الملف", "x-telegram-field-docs": true}, "mtime": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الوقت المعدل", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "البيانات", "x-telegram-field-docs": true}}, "required": ["_", "size", "mime_type", "file_type", "mtime", "bytes"], "additionalProperties": false}, "payments.paymentForm": {"title": "payments.paymentForm", "description": "نموذج الدفع", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentForm"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentForm"]}, "can_save_credentials": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان يمكن للمستخدم اختيار حفظ بيانات الاعتماد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "password_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يشير إلى أنه يمكن للمستخدم حفظ بيانات اعتماد الدفع، ولكن فقط بعد إعداد [كلمة مرور 2FA](https://core.telegram.org/api/srp.md) (حاليًا لا يحتوي الحساب على [كلمة مرور 2FA](https://core.telegram.org/api/srp.md))", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف النموذج", "x-tl-type": "long", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف البوت", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "عنوان النموذج", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "الوصف", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "صورة المنتج", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "الفاتورة", "x-telegram-field-docs": true}, "provider_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف مزود الدفع.", "x-tl-type": "long", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "نموذج الدفع URL", "x-telegram-field-docs": true}, "native_provider": {"type": "string", "x-tl-type": "string", "description": "اسم مزود الدفع. واحد مما يلي :- `stripe`", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "native_params": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "يحتوي على معلومات حول مزود الدفع، إذا كان متاحًا، لدعمه محليًا دون الحاجة إلى فتح URL. كائن JSON يمكن أن يحتوي على الحقول التالية: - `apple_pay_merchant_id`: معرف تاجر Apple Pay - `google_pay_public_key`: مفتاح Google Pay العام - `need_country`: صحيح، إذا كان يجب توفير بلد المستخدم، - `need_zip`: صحيح، إذا كان يجب توفير المستخدم ZIP/الرمز البريدي، - `need_cardholder_name`: صحيح، إذا كان يجب أن يكون اسم حامل البطاقة المقدمة\\", "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": "معرف النموذج.", "x-tl-type": "long", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف البوت.", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "عنوان النموذج", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "الوصف", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "صورة المنتج", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "الفاتورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "معرف النموذج.", "x-tl-type": "long", "x-telegram-field-docs": true}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "الفاتورة", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "invoice"], "additionalProperties": false}, "payments.validatedRequestedInfo": {"title": "payments.validatedRequestedInfo", "description": "تم التحقق من صحة المعلومات المقدمة من قبل المستخدم", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.validatedRequestedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.validatedRequestedInfo"]}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "shipping_options": {"type": "array", "items": {"type": "object", "x-tl-type": "ShippingOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shippingOption"]}}, "description": "TL 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": "معرف البوت", "x-tl-type": "long", "x-telegram-field-docs": true}, "provider_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المزود", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "العنوان", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "الوصف", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "الصورة", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "الفاتورة", "x-telegram-field-docs": true}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "معلومات", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping": {"type": "object", "x-tl-type": "ShippingOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shippingOption"]}}, "description": "خيار الشحن المحدد", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?ShippingOption"}, "tip_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "مبلغ مقلوب", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "المبلغ الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس عائمًا/مضاعفًا). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "credentials_title": {"type": "string", "x-tl-type": "string", "description": "اسم بيانات اعتماد الدفع", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "معرف البوت", "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": "معرف المعاملة", "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": "معرف الاعتماد", "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", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsApplePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsApplePay"]}, "payment_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "بيانات الدفع", "x-telegram-field-docs": true}}, "required": ["_", "payment_data"], "additionalProperties": false}, "inputPaymentCredentialsGooglePay": {"title": "inputPaymentCredentialsGooglePay", "description": "بيانات اعتماد الدفع في Google Pay", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsGooglePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsGooglePay"]}, "payment_token": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "رمز الدفع", "x-telegram-field-docs": true}}, "required": ["_", "payment_token"], "additionalProperties": false}, "account.tmpPassword": {"title": "account.tmpPassword", "description": "كلمة مرور الدفع المؤقتة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.tmpPassword"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.tmpPassword"]}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "كلمة مرور مؤقتة", "x-telegram-field-docs": true}, "valid_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "فترة الصلاحية", "x-telegram-field-docs": true}}, "required": ["_", "tmp_password", "valid_until"], "additionalProperties": false}, "shippingOption": {"title": "shippingOption", "description": "خيار الشحن", "externalDocs": {"url": "https://core.telegram.org/constructor/shippingOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["shippingOption"]}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف الخيار", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "العنوان", "x-telegram-field-docs": true}, "prices": {"type": "array", "items": {"type": "object", "x-tl-type": "LabeledPrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}}, "description": "Тип TL: LabeledPrice."}, "x-tl-type": "Vector<LabeledPrice>", "description": "قائمة أجزاء الأسعار", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "prices"], "additionalProperties": false}, "inputStickerSetItem": {"title": "inputStickerSetItem", "description": "ملصق في مجموعة ملصقات", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetItem"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetItem"]}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "الملصق", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية المرتبطة", "x-telegram-field-docs": true}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["maskCoords"]}}, "description": "إحداثيات ملصق القناع", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MaskCoords"}, "keywords": {"type": "string", "x-tl-type": "string", "description": "مجموعة من الكلمات الرئيسية، مفصولة بفواصل (لا يمكن توفيرها لملصقات الأقنعة)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "document", "emoji"], "additionalProperties": false}, "inputPhoneCall": {"title": "inputPhoneCall", "description": "يحدد [مكالمة هاتفية](https://core.telegram.org/api/calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneCall"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المكالمة", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "phoneCallEmpty": {"title": "phoneCallEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneCallWaiting": {"title": "phoneCallWaiting", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallWaiting"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "receive_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "protocol"], "additionalProperties": false}, "phoneCallRequested": {"title": "phoneCallRequested", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallRequested"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_hash", "protocol"], "additionalProperties": false}, "phoneCallAccepted": {"title": "phoneCallAccepted", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallAccepted"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_b", "protocol"], "additionalProperties": false}, "phoneCall": {"title": "phoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCall"]}, "p2p_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "conference_supported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_or_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "connections": {"type": "array", "items": {"type": "object", "x-tl-type": "PhoneConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneConnection", "phoneConnectionWebrtc"]}}, "description": "Тип TL: PhoneConnection."}, "x-tl-type": "Vector<PhoneConnection>"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "custom_parameters": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL 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": "ما إذا كان سيتم السماح بالاتصال P2P بالمشارك الآخر", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "udp_reflector": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم السماح بالاتصال بالمشاركين الآخرين من خلال الخوادم العاكسة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "min_layer": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأدنى من الطبقة لـ libtgvoip عن بعد", "x-telegram-field-docs": true}, "max_layer": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لطبقة libtgvoip عن بعد", "x-telegram-field-docs": true}, "library_versions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "عند استخدام [phone.requestCall](https://core.telegram.org/method/phone.requestCall.md) و[phone.acceptCall](https://core.telegram.org/method/phone.acceptCall.md)، حدد كافة إصدارات المكتبة التي يدعمها العميل.  سيقوم الخادم بدمج واختيار أفضل إصدار مكتبة يدعمه كلا النظيرين، مع إرجاع أفضل قيمة فقط في نتيجة المتصل [phone.acceptCall](https://core.telegram.org/method/phone.acceptCall.md) وفي تحديث [phoneCallAccepted](https://core.telegram.org/constructor/phoneCallAccepted.md) الذي يتلقاه المتصل.", "x-telegram-field-docs": true}}, "required": ["_", "min_layer", "max_layer", "library_versions"], "additionalProperties": false}, "phone.phoneCall": {"title": "phone.phoneCall", "description": "مكالمة هاتفية VoIP", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.phoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.phoneCall"]}, "phone_call": {"type": "object", "x-tl-type": "PhoneCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty", "phoneCallWaiting", "phoneCallRequested", "phoneCallAccepted", "phoneCall", "phoneCallDiscarded"]}}, "description": "مكالمة هاتفية VoIP", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "تم مسح الملف من ذاكرة التخزين المؤقت RAM المؤقتة لـ [CDN](https://core.telegram.org/cdn.md) ويجب إعادة تحميله.", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.cdnFileReuploadNeeded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.cdnFileReuploadNeeded"]}, "request_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "رمز الطلب (راجع [CDN](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}}, "required": ["_", "request_token"], "additionalProperties": false}, "upload.cdnFile": {"title": "upload.cdnFile", "description": "تمثل جزءًا من ملف [CDN](https://core.telegram.org/cdn.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.cdnFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.cdnFile"]}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "البيانات", "x-telegram-field-docs": true}}, "required": ["_", "bytes"], "additionalProperties": false}, "cdnPublicKey": {"title": "cdnPublicKey", "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_key": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "dc_id", "public_key"], "additionalProperties": false}, "cdnConfig": {"title": "cdnConfig", "description": "التكوين لتنزيلات الملفات [CDN](https://core.telegram.org/cdn.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/cdnConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnConfig"]}, "public_keys": {"type": "array", "items": {"type": "object", "x-tl-type": "CdnPublicKey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}}, "description": "Тип TL: CdnPublicKey."}, "x-tl-type": "Vector<CdnPublicKey>", "description": "متجه المفاتيح العامة لاستخدامها **فقط** أثناء المصافحة إلى [CDN](https://core.telegram.org/cdn.md) 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": "القيمة لكائن واحد", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "two_value": {"type": "string", "x-tl-type": "string", "description": "قيمة لكائنين", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "few_value": {"type": "string", "x-tl-type": "string", "description": "قيمة لعدد قليل من الكائنات", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "many_value": {"type": "string", "x-tl-type": "string", "description": "قيمة للعديد من الكائنات", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "other_value": {"type": "string", "x-tl-type": "string", "description": "القيمة الافتراضية", "x-telegram-field-docs": true}}, "required": ["_", "key", "other_value"], "additionalProperties": false}, "langPackStringDeleted": {"title": "langPackStringDeleted", "description": "سلسلة الترجمة المحذوفة", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackStringDeleted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackStringDeleted"]}, "key": {"type": "string", "x-tl-type": "string", "description": "مفتاح الترجمة", "x-telegram-field-docs": true}}, "required": ["_", "key"], "additionalProperties": false}, "langPackDifference": {"title": "langPackDifference", "description": "تغييرات على حزمة الترجمة الخاصة بالتطبيق", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "رمز اللغة", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "رقم الإصدار السابق", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "رقم الإصدار الجديد", "x-telegram-field-docs": true}, "strings": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackString", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["langPackString", "langPackStringPluralized", "langPackStringDeleted"]}}, "description": "TL 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/channelAdminLogEventActionParticipantJoin.md)، بما في ذلك [الانضمام باستخدام روابط الدعوة](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.md) و[طلبات الانضمام](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "leave": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[اترك الأحداث](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "invite": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[دعوة الأحداث](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "ban": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[حظر الأحداث](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "unban": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث إلغاء الحظر](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "kick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث الركلة](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "unkick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[إلغاء الأحداث](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "promote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث ترقية المشرف](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "demote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث خفض رتبة المسؤول](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "أحداث تغيير المعلومات (عندما [حول](https://core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.md)، [دردشة مرتبطة](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.md)، [الموقع](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.md)، [صورة](https://core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.md)، [مجموعة الملصقات](https://core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.md)]، [العنوان](https://core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.md) أو [اسم المستخدم](https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.md)، [الوضع البطيء](https://core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.md)، [السجل TTL](https://core.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.md) إعدادات القناة يتم تعديله)", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "أحداث تغيير الإعدادات ([الدعوات](https://core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.md)، [التاريخ المخفي](https://core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.md)، [التوقيعات](https://core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.md)، [الحقوق المحظورة الافتراضية](https://core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.md)، [أحداث تبديل المنتدى](https://core.telegram.org/constructor/channelAdminLogEventActionToggleForum.md))", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث دبوس الرسالة](https://core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث تحرير الرسالة](https://core.telegram.org/constructor/channelAdminLogEventActionEditMessage.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث حذف الرسالة](https://core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "group_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "أحداث المكالمات الجماعية", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "دعوة الأحداث", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "send": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تم نشر رسالة في إحدى القنوات", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "forums": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[الأحداث المتعلقة بالمنتدى](https://core.telegram.org/api/forum.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "sub_extend": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[أحداث تمديد اشتراك Telegram Star »](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantSubExtend.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "edit_rank": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "الأحداث التي تم فيها تغيير [العلامة (الرتبة) المخصصة للمشارك »](https://core.telegram.org/api/rank.md) ([channelAdminLogEventActionParticipantEditRank](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantEditRank.md)).", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?true"}}, "required": ["_"], "additionalProperties": false}, "popularContact": {"title": "popularContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["popularContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "importers": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "client_id", "importers"], "additionalProperties": false}, "messages.favedStickersNotModified": {"title": "messages.favedStickersNotModified", "description": "لم يتم العثور على ملصقات مفضلة جديدة", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.favedStickers": {"title": "messages.favedStickers", "description": "الملصقات المفضلة", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "الرموز التعبيرية المرتبطة بالملصقات", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "معرف وسائط العميل الفريد مطلوب لمنع إعادة إرسال الرسالة. راجع [هنا »](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": "أرسل رسالة [الكيانات](https://core.telegram.org/api/entities.md) للنص المصمم", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}}, "required": ["_", "media", "random_id", "message"], "additionalProperties": false}, "webAuthorization": {"title": "webAuthorization", "type": "object", "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "domain": {"type": "string", "x-tl-type": "string"}, "browser": {"type": "string", "x-tl-type": "string"}, "platform": {"type": "string", "x-tl-type": "string"}, "date_created": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date_active": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "ip": {"type": "string", "x-tl-type": "string"}, "region": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "hash", "bot_id", "domain", "browser", "platform", "date_created", "date_active", "ip", "region"], "additionalProperties": false}, "account.webAuthorizations": {"title": "account.webAuthorizations", "description": "تراخيص الويب", "externalDocs": {"url": "https://core.telegram.org/constructor/account.webAuthorizations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webAuthorizations"]}, "authorizations": {"type": "array", "items": {"type": "object", "x-tl-type": "WebAuthorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}}, "description": "Тип TL: WebAuthorization."}, "x-tl-type": "Vector<WebAuthorization>", "description": "قائمة تفويضات الويب", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "المستخدمين", "x-telegram-field-docs": true}}, "required": ["_", "authorizations", "users"], "additionalProperties": false}, "inputMessageID": {"title": "inputMessageID", "description": "الرسالة بالهوية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessageReplyTo": {"title": "inputMessageReplyTo", "description": "الرسالة التي ترد عليها الرسالة المحددة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReplyTo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReplyTo"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة التي ترد على الرسالة التي نحتاجها", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessagePinned": {"title": "inputMessagePinned", "description": "رسالة مثبتة", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagePinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagePinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessageCallbackQuery": {"title": "inputMessageCallbackQuery", "description": "يتم استخدامه بواسطة الروبوتات لجلب معلومات حول الرسالة التي أنشأت استعلام رد الاتصال", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageCallbackQuery"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageCallbackQuery"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف استعلام رد الاتصال", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "query_id"], "additionalProperties": false}, "inputDialogPeer": {"title": "inputDialogPeer", "description": "نظير", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الأقران", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputDialogPeerFolder": {"title": "inputDialogPeerFolder", "description": "جميع الأقران في [مجلد الأقران](https://core.telegram.org/api/folders.md#peer-folders)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeerFolder"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeerFolder"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "folder_id"], "additionalProperties": false}, "inputDialogPeerCommunity": {"title": "inputDialogPeerCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeerCommunity"]}, "community": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "TL 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": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](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": "لم يتم إجراء أي تغييرات على شروط خدمة برقية", "externalDocs": {"url": "https://core.telegram.org/constructor/help.termsOfServiceUpdateEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfServiceUpdateEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يجب الاستعلام عن تحديثات TOS الجديدة باستخدام [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) في `expires` ثوانٍ", "x-telegram-field-docs": true}}, "required": ["_", "expires"], "additionalProperties": false}, "help.termsOfServiceUpdate": {"title": "help.termsOfServiceUpdate", "description": "معلومات حول تحديث شروط خدمة تيليجرام. إذا تم رفض شروط الخدمة، فيجب استدعاء الطريقة [account.deleteAccount](https://core.telegram.org/method/account.deleteAccount.md) مع سبب \"رفض تحديث ToS\"", "externalDocs": {"url": "https://core.telegram.org/constructor/help.termsOfServiceUpdate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfServiceUpdate"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يجب الاستعلام عن تحديثات TOS الجديدة باستخدام [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) في `expires` ثوانٍ", "x-telegram-field-docs": true}, "terms_of_service": {"type": "object", "x-tl-type": "help.TermsOfService", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}}, "description": "شروط الخدمة الجديدة", "x-telegram-field-docs": true}}, "required": ["_", "expires", "terms_of_service"], "additionalProperties": false}, "inputSecureFileUploaded": {"title": "inputSecureFileUploaded", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "md5_checksum": {"type": "string", "x-tl-type": "string"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "parts", "md5_checksum", "file_hash", "secret"], "additionalProperties": false}, "inputSecureFile": {"title": "inputSecureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "secureFileEmpty": {"title": "secureFileEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "secureFile": {"title": "secureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "access_hash", "size", "dc_id", "date", "file_hash", "secret"], "additionalProperties": false}, "secureData": {"title": "secureData", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureData"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data", "data_hash", "secret"], "additionalProperties": false}, "securePlainPhone": {"title": "securePlainPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainPhone"]}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "phone"], "additionalProperties": false}, "securePlainEmail": {"title": "securePlainEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainEmail"]}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "email"], "additionalProperties": false}, "secureValueTypePersonalDetails": {"title": "secureValueTypePersonalDetails", "description": "التفاصيل الشخصية", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassport": {"title": "secureValueTypePassport", "description": "جواز السفر", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeDriverLicense": {"title": "secureValueTypeDriverLicense", "description": "رخصة القيادة", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeDriverLicense"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeDriverLicense"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeIdentityCard": {"title": "secureValueTypeIdentityCard", "description": "بطاقة الهوية", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeIdentityCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeIdentityCard"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeInternalPassport": {"title": "secureValueTypeInternalPassport", "description": "داخلي [جواز السفر](https://core.telegram.org/passport.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeInternalPassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeInternalPassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeAddress": {"title": "secureValueTypeAddress", "description": "العنوان", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeAddress"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeAddress"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeUtilityBill": {"title": "secureValueTypeUtilityBill", "description": "فاتورة المرافق", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeUtilityBill"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeUtilityBill"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeBankStatement": {"title": "secureValueTypeBankStatement", "description": "كشف حساب البنك", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeBankStatement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeBankStatement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeRentalAgreement": {"title": "secureValueTypeRentalAgreement", "description": "اتفاقية الإيجار", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeRentalAgreement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeRentalAgreement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassportRegistration": {"title": "secureValueTypePassportRegistration", "description": "التسجيل الداخلي [جواز السفر](https://core.telegram.org/passport.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassportRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassportRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeTemporaryRegistration": {"title": "secureValueTypeTemporaryRegistration", "description": "التسجيل المؤقت", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeTemporaryRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePhone": {"title": "secureValueTypePhone", "description": "الهاتف", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePhone"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeEmail": {"title": "secureValueTypeEmail", "description": "البريد الإلكتروني", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeEmail"]}}, "required": ["_"], "additionalProperties": false}, "secureValue": {"title": "secureValue", "description": "قيمة آمنة", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValue"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "قم بتأمين نوع قيمة [جواز السفر](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "SecureData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureData"]}}, "description": "بيانات عنصر [Telegram Passport](https://core.telegram.org/passport.md)] مشفرة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?SecureData"}, "front_side": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "ملف [passport](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": "ملف [passport](https://core.telegram.org/passport.md) مشفر مع الجانب الخلفي من المستند", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?SecureFile"}, "selfie": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "ملف [passport](https://core.telegram.org/passport.md)] مشفر مع صورة شخصية للمستخدم الذي يحمل المستند", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Тип TL: SecureFile."}, "x-tl-type": "Vector<SecureFile>", "description": "مجموعة من ملفات [جواز السفر](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": "ملف [passport](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": "ملف [passport](https://core.telegram.org/passport.md) مشفر مع الجانب الخلفي من المستند", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputSecureFile"}, "selfie": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "ملف [passport](https://core.telegram.org/passport.md)] مشفر مع صورة شخصية للمستخدم الذي يحمل المستند", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputSecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Тип TL: InputSecureFile."}, "x-tl-type": "Vector<InputSecureFile>", "description": "مجموعة من ملفات [جواز السفر](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": "يمثل مشكلة في أحد حقول البيانات التي قدمها المستخدم. يعتبر الخطأ قد تم حله عندما تتغير قيمة الحقل.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorData"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "قسم Telegram Passport الخاص بالمستخدم الذي يحتوي على الخطأ، أحد [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)، [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)، [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)، [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)، [secureValueTypeAddress](https://core.telegram.org/constructor/secureValueTypeAddress.md)", "x-telegram-field-docs": true}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة البيانات", "x-telegram-field-docs": true}, "field": {"type": "string", "x-tl-type": "string", "description": "اسم حقل البيانات الذي يحتوي على الخطأ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "data_hash", "field", "text"], "additionalProperties": false}, "secureValueErrorFrontSide": {"title": "secureValueErrorFrontSide", "description": "يمثل مشكلة في الجانب الأمامي من المستند. يعتبر الخطأ قد تم حله عندما يتغير الملف الذي يحتوي على الجانب الأمامي من المستند.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFrontSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFrontSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)، [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)، [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorReverseSide": {"title": "secureValueErrorReverseSide", "description": "يمثل مشكلة في الجانب الخلفي من المستند. يعتبر الخطأ قد تم حله عندما يتغير الملف ذو الجانب الخلفي من المستند.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorReverseSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorReverseSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorSelfie": {"title": "secureValueErrorSelfie", "description": "يمثل مشكلة في الصورة الشخصية مع مستند. يعتبر الخطأ قد تم حله عندما يتغير الملف الذي يحتوي على الصورة الشخصية.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorSelfie"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorSelfie"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)، [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)، [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFile": {"title": "secureValueErrorFile", "description": "يمثل مشكلة في مسح المستندات ضوئيًا. يعتبر الخطأ قد تم حله عندما يتغير الملف الذي تم مسح المستند ضوئيًا.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)، [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)، [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)، [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)، [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFiles": {"title": "secureValueErrorFiles", "description": "يمثل مشكلة في قائمة عمليات الفحص. يعتبر الخطأ قد تم حله عندما تتغير قائمة الملفات التي تحتوي على عمليات الفحص.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)، [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)، [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)، [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)، [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueError": {"title": "secureValueError", "description": "خطأ في القيمة الآمنة", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueError"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueError"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "نوع العنصر الذي به المشكلة", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "التجزئة", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFile": {"title": "secureValueErrorTranslationFile", "description": "يمثل مشكلة في أحد الملفات التي تشكل ترجمة المستند. يعتبر الخطأ قد تم حله عندما يتغير الملف.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)، [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)، [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)، [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)، [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)، [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)، [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)، [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)، [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة الملف", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFiles": {"title": "secureValueErrorTranslationFiles", "description": "يمثل مشكلة في النسخة المترجمة من المستند. يعتبر الخطأ قد تم حله عندما يتغير ملف يحتوي على ترجمة المستند.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "واحدة من [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)، [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)، [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)، [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)، [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)، [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)، [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)، [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)، [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)، [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "التجزئة", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "رسالة خطأ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureCredentialsEncrypted": {"title": "secureCredentialsEncrypted", "description": "بيانات الاعتماد المشفرة المطلوبة لفك تشفير بيانات [جواز سفر برقية](https://core.telegram.org/passport.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/secureCredentialsEncrypted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureCredentialsEncrypted"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "مشفرة JSON بيانات متسلسلة مع حمولة مستخدم فريدة وتجزئة البيانات والأسرار المطلوبة لفك تشفير EncryptedPassportElement والمصادقة، كما هو موضح في [فك تشفير البيانات »](https://core.telegram.org/passport.md#decrypting-data)", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "تجزئة البيانات لمصادقة البيانات كما هو موضح في [فك تشفير البيانات »](https://core.telegram.org/passport.md#decrypting-data)", "x-telegram-field-docs": true}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "سري، مشفر باستخدام مفتاح RSA العام للروبوت، وهو مطلوب لفك تشفير البيانات كما هو موضح في [فك تشفير البيانات »](https://core.telegram.org/passport.md#decrypting-data)", "x-telegram-field-docs": true}}, "required": ["_", "data", "hash", "secret"], "additionalProperties": false}, "account.authorizationForm": {"title": "account.authorizationForm", "description": "[نموذج تفويض جواز السفر برقية](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](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 من سياسة الخصوصية الخاصة بالخدمة", "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": "يجب أن يتطابق البريد الإلكتروني (الذي تم إرسال الرمز إليه) مع هذا [pattern](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": "معرف الإخراج", "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 المعرف](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": "قيمة JSON فارغة\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNull"]}}, "required": ["_"], "additionalProperties": false}, "jsonBool": {"title": "jsonBool", "description": "JSON قيمة منطقية\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonBool"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonBool"]}, "value": {"type": "boolean", "x-tl-type": "Bool", "description": "القيمة", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonNumber": {"title": "jsonNumber", "description": "JSON قيمة رقمية\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNumber"]}, "value": {"type": "number", "format": "double", "x-tl-type": "double", "description": "القيمة", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonString": {"title": "jsonString", "description": "JSON سلسلة\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonString"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonString"]}, "value": {"type": "string", "x-tl-type": "string", "description": "القيمة", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonArray": {"title": "jsonArray", "description": "JSON مصفوفة\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonArray"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonArray"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Тип TL: JSONValue."}, "x-tl-type": "Vector<JSONValue>", "description": "JSON القيم", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonObject": {"title": "jsonObject", "description": "JSON قيمة الكائن\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonObject"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonObject"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONObjectValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonObjectValue"]}}, "description": "Тип TL: JSONObjectValue."}, "x-tl-type": "Vector<JSONObjectValue>", "description": "القيم", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "pageTableCell": {"title": "pageTableCell", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}, "header": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "align_center": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "align_right": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "valign_middle": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "valign_bottom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText.", "x-tl-flag": "flags.7?RichText"}, "colspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "rowspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "pageTableRow": {"title": "pageTableRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableRow"]}, "cells": {"type": "array", "items": {"type": "object", "x-tl-type": "PageTableCell", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}}, "description": "Тип TL: PageTableCell."}, "x-tl-type": "Vector<PageTableCell>"}}, "required": ["_", "cells"], "additionalProperties": false}, "pageCaption": {"title": "pageCaption", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageCaption"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "credit": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "credit"], "additionalProperties": false}, "pageListItemText": {"title": "pageListItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageListItemBlocks": {"title": "pageListItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageListOrderedItemText": {"title": "pageListOrderedItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "text"], "additionalProperties": false}, "pageListOrderedItemBlocks": {"title": "pageListOrderedItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageRelatedArticle": {"title": "pageRelatedArticle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "url", "webpage_id"], "additionalProperties": false}, "page": {"title": "page", "type": "object", "properties": {"_": {"type": "string", "enum": ["page"]}, "part": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "v2": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "تمثيل نصي للإجابة (فقط مستخدمي [Premium](https://core.telegram.org/api/premium.md) يمكنهم استخدام [كيانات الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md) هنا).", "x-telegram-field-docs": true}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "المعلمة التي يجب تمريرها إلى [messages.sendVote](https://core.telegram.org/method/messages.sendVote.md).", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "يتم عرض مرفق الوسائط الاختياري بجانب الإجابة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MessageMedia"}, "added_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "النظير الذي أضاف هذه الإجابة؛ تم تعيينه فقط للإجابات المضافة ديناميكيًا إلى استطلاع الإجابة المفتوحة، راجع [استطلاعات الرأي »](https://core.telegram.org/api/poll.md#open-answer-polls)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عندما أضيفت هذه الإجابة؛ يتم تعيينه فقط للإجابات المضافة ديناميكيًا إلى استطلاع الإجابة المفتوحة", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "inputPollAnswer": {"title": "inputPollAnswer", "description": "خيار إجابة لإضافته إلى [استطلاع إجابة مفتوحة »](https://core.telegram.org/api/poll.md#open-answer-polls)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPollAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPollAnswer"]}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "نص الجواب", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "مرفق وسائط اختياري لعرضه بجانب الإجابة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputMedia"}}, "required": ["_", "text"], "additionalProperties": false}, "poll": {"title": "poll", "type": "object", "properties": {"_": {"type": "string", "enum": ["poll"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "public_voters": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "multiple_choice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "quiz": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "open_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "revoting_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "shuffle_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "hide_results_until_close": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "subscribers_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "question": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL 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": "إذا تم تعيينه، فإنه يسمح للمسؤول بإضافة مسؤولين آخرين بنفس الأذونات (أو أكثر محدودية) في [القناة/المجموعة الفائقة](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "anonymous": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المشرف مجهولاً", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "manage_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يسمح للمسؤول بإنشاء وإدارة [محادثات الفيديو/البث المباشر»](https://core.telegram.org/api/group-calls.md#video-chats-livestreams)", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "other": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "قم بتعيين هذه العلامة إذا لم يتم تعيين أي من العلامات الأخرى، ولكنك لا تزال تريد أن يكون المستخدم مسؤولاً: إذا تم تعيين هذه العلامة أو أي من العلامات الأخرى، فيمكن للمسؤول الحصول على الدردشة [سجل المشرف](https://core.telegram.org/api/recent-actions.md)، والحصول على [إحصاءات الدردشة](https://core.telegram.org/api/stats.md)، والحصول على [إحصاءات الرسائل في القنوات](https://core.telegram.org/api/stats.md)، والحصول على أعضاء القناة، ورؤية المسؤولين المجهولين في المجموعات الفائقة وتجاهل الوضع البطيء.", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة التعيين، يسمح للمسؤول بإنشاء أو حذف أو تعديل [موضوعات المنتدى »](https://core.telegram.org/api/forum.md#forum-topics).", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "post_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيسمح للمسؤول بنشر [القصص](https://core.telegram.org/api/stories.md) باسم [القناة](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "edit_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيسمح للمسؤول بتحرير [القصص](https://core.telegram.org/api/stories.md) التي نشرها المسؤولون الآخرون في [القناة](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "delete_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيسمح للمسؤول بحذف [القصص](https://core.telegram.org/api/stories.md) التي نشرها المسؤولون الآخرون في [القناة](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "manage_direct_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يسمح للمسؤول بإدارة [منتدى الرسائل المباشرة الأحادي»](https://core.telegram.org/api/monoforum.md) و[رفض المشاركات المقترحة»](https://core.telegram.org/api/suggested-posts.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "manage_ranks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فإنه يسمح للمسؤول بتعديل [علامة العضو »](https://core.telegram.org/api/rank.md) لأي مستخدم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "manage_linked_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "manage_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}}, "required": ["_"], "additionalProperties": false}, "chatBannedRights": {"title": "chatBannedRights", "description": "يمثل حقوق المستخدم العادي في [supergroup/channel/chat](https://core.telegram.org/api/channel.md). في هذه الحالة، يتم قلب العلامات: إذا تم ضبطها، فإن العلامة **لا تسمح** للمستخدم بإجراء X.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatBannedRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}, "view_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بعرض الرسائل في [supergroup/channel/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "send_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال رسائل في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "send_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال أي وسائط في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "send_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بإرسال ملصقات في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "send_gifs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "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": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال الألعاب في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "send_inline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم باستخدام الروبوتات المضمنة في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "embed_links": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بتضمين الروابط في رسائل [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "send_polls": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال استطلاعات الرأي في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "change_info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بتغيير وصف [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "invite_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بدعوة مستخدمين إلى [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "pin_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بتثبيت الرسائل في [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة الضبط، لا يسمح للمستخدم بإنشاء أو حذف أو تعديل [موضوعات المنتدى »](https://core.telegram.org/api/forum.md#forum-topics).", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "send_photos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال الصور في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?true"}, "send_videos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال مقاطع فيديو في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.20?true"}, "send_roundvideos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بإرسال مقاطع فيديو مستديرة في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.21?true"}, "send_audios": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بإرسال ملفات صوتية في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?true"}, "send_voices": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بإرسال رسائل صوتية في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.23?true"}, "send_docs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بإرسال المستندات في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.24?true"}, "send_plain": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يسمح للمستخدم بإرسال رسائل نصية في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?true"}, "edit_rank": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة التعيين، لا يسمح للمستخدم بتحرير [العلامة (الرتبة) المخصصة الخاصة به »](https://core.telegram.org/api/rank.md) في [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "send_reactions": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينه، فلن يسمح للمستخدم بالرد على الرسائل في الدردشة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?true"}, "manage_linked_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "صلاحية الأذونات المذكورة (تعتبر إلى الأبد أي قيمة أقل من 30 ثانية أو أكثر من 366 يومًا).", "x-telegram-field-docs": true}}, "required": ["_", "until_date"], "additionalProperties": false}, "inputWallPaper": {"title": "inputWallPaper", "description": "[خلفية](https://core.telegram.org/api/wallpapers.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[خلفية](https://core.telegram.org/api/wallpapers.md) معرف", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputWallPaperSlug": {"title": "inputWallPaperSlug", "description": "[خلفية](https://core.telegram.org/api/wallpapers.md) بواسطة سبيكة (معرف فريد، تم الحصول عليه من [رابط خلفية »](https://core.telegram.org/api/links.md#wallpaper-links))", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaperSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaperSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "معرف خلفية فريد", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputWallPaperNoFile": {"title": "inputWallPaperNoFile", "description": "[Wallpaper](https://core.telegram.org/api/wallpapers.md) بدون تجزئة الوصول إلى الملف، يستخدم على سبيل المثال عند حذف (`unsave=true`) خلفيات باستخدام [account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper.md)، مع تحديد معرف خلفية الشاشة فقط.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف ورق الجدران", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "account.wallPapersNotModified": {"title": "account.wallPapersNotModified", "description": "لم يتم العثور على [خلفيات](https://core.telegram.org/api/wallpapers.md) جديدة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.wallPapersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.wallPapersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.wallPapers": {"title": "account.wallPapers", "description": "تم تثبيت [خلفيات](https://core.telegram.org/api/wallpapers.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.wallPapers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.wallPapers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "wallpapers": {"type": "array", "items": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL 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": "الإعدادات التي تستخدمها خوادم التليجرام لإرسال رمز التأكيد.\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": "قم بتمرير \"صحيح\" إذا تم استخدام رقم الهاتف على الجهاز الحالي. يتم تجاهله إذا لم يتم ضبط 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": "إذا كان الرمز المميز الذي سيتم تضمينه في الرسائل القصيرة المرسلة في النهاية مطلوبًا: مطلوب في الإصدارات الأحدث من android، لاستخدام [android SMS Receiver APIs](https://developers.google.com/identity/sms-retriever/overview)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "allow_missed_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا الجهاز يدعم استقبال الرمز باستخدام طريقة [auth.codeTypeMissedCall](https://core.telegram.org/constructor/auth.codeTypeMissedCall.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "allow_firebase": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان مصادقة Firebase مدعومة أم لا", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "unknown_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "اضبط هذه العلامة إذا كانت هناك بطاقة SIM في الجهاز الحالي، ولكن لا يمكن التحقق مما إذا كان رقم الهاتف المحدد يطابق رقم هاتف SIM.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "logout_tokens": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "رموز المصادقة المستقبلية المخزنة مسبقًا، راجع [الوثائق لمزيد من المعلومات »](https://core.telegram.org/api/auth.md#future-auth-tokens)", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<bytes>"}, "token": {"type": "string", "x-tl-type": "string", "description": "يُستخدم فقط من خلال تطبيقات iOS الرسمية لمصادقة Firebase: رمز الجهاز المميز لـ apple Push.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "تُستخدم فقط من خلال تطبيقات iOS الرسمية لمصادقة Firebase: ما إذا كان سيتم استخدام شهادة وضع الحماية أثناء إرسال إشعار الدفع.", "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 لتلائم مربعًا بحجم 450 × 450 ثم يتم تعتيمها بشكل مربع بنصف قطر 12.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "motion": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة الضبط، يجب تحريك الخلفية قليلاً عند تدوير الجهاز.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يستخدم لـ [صلب »](https://core.telegram.org/api/wallpapers.md#solid-fill)، [التدرج »](https://core.telegram.org/api/wallpapers.md#gradient-fill) و[التدرج الحر»](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) للتعبئة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "second_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يستخدم لـ [التدرج »](https://core.telegram.org/api/wallpapers.md#gradient-fill) و[التدرج الحر»](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) للتعبئة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "third_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يستخدم لـ [التدرج الحر »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) يملأ.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fourth_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يستخدم لـ [التدرج الحر »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) يملأ.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "intensity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تستخدم لـ [خلفيات النمط »](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "rotation": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "زاوية دوران التدرج في اتجاه عقارب الساعة، بالدرجات؛ 0-359. يجب أن يكون دائمًا قابلاً للقسمة على 45.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "إذا تم تعيينها، يمكن استخدام خلفية الشاشة هذه كخلفية للقناة ويتم تمثيلها بواسطة الرموز التعبيرية UTF-8 المحددة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}}, "required": ["_"], "additionalProperties": false}, "autoDownloadSettings": {"title": "autoDownloadSettings", "description": "إعدادات التنزيل التلقائي", "externalDocs": {"url": "https://core.telegram.org/constructor/autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "هل تريد تعطيل التنزيلات التلقائية للوسائط؟", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "video_preload_large": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم التحميل المسبق للثواني الأولى من مقاطع الفيديو التي يزيد حجمها عن الحد المحدد", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "audio_preload_next": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تحميل المسار الصوتي التالي مسبقًا عند الاستماع إلى الموسيقى", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "phonecalls_less_data": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تمكين وضع حفظ البيانات في المكالمات الهاتفية", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stories_preload": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم التحميل المسبق [stories](https://core.telegram.org/api/stories.md)؛ على وجه الخصوص، يجب تحميل أول [documentAttributeVideo](https://core.telegram.org/constructor/documentAttributeVideo.md).`preload_prefix_size` بايت من مقاطع فيديو القصة مسبقًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "photo_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لحجم الصور للتحميل المسبق", "x-telegram-field-docs": true}, "video_size_max": {"type": "string", "pattern": "^-?\\d+$", "description": "الحد الأقصى لحجم مقاطع الفيديو للتحميل المسبق", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_size_max": {"type": "string", "pattern": "^-?\\d+$", "description": "الحد الأقصى لحجم الملفات الأخرى للتحميل المسبق", "x-tl-type": "long", "x-telegram-field-docs": true}, "video_upload_maxbitrate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الحد الأقصى لمعدل البت المقترح لـ **تحميل** مقاطع الفيديو", "x-telegram-field-docs": true}, "small_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "حد، يحدد الحد الأقصى لعدد الملفات التي يجب تنزيلها بالتوازي من نفس DC، للملفات الأصغر من 20 ميجابايت.", "x-telegram-field-docs": true}, "large_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "حد، يحدد الحد الأقصى لعدد الملفات التي يجب تنزيلها بالتوازي من نفس DC، للملفات الأكبر من 20 ميجابايت.", "x-telegram-field-docs": true}}, "required": ["_", "photo_size_max", "video_size_max", "file_size_max", "video_upload_maxbitrate", "small_queue_active_operations_max", "large_queue_active_operations_max"], "additionalProperties": false}, "account.autoDownloadSettings": {"title": "account.autoDownloadSettings", "description": "إعدادات التنزيل التلقائي للوسائط", "externalDocs": {"url": "https://core.telegram.org/constructor/account.autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.autoDownloadSettings"]}, "low": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "انخفاض استخدام البيانات مسبقا", "x-telegram-field-docs": true}, "medium": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "إعداد مسبق لاستخدام البيانات المتوسطة", "x-telegram-field-docs": true}, "high": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "ارتفاع استخدام البيانات مسبقا", "x-telegram-field-docs": true}}, "required": ["_", "low", "medium", "high"], "additionalProperties": false}, "emojiKeyword": {"title": "emojiKeyword", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeyword"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordDeleted": {"title": "emojiKeywordDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordDeleted"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordsDifference": {"title": "emojiKeywordsDifference", "description": "التغييرات في الكلمات الرئيسية للرموز التعبيرية", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiKeywordsDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordsDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "رمز اللغة للكلمات الرئيسية", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الإصدار السابق من قائمة الكلمات الرئيسية للرموز التعبيرية", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الإصدار الحالي من قائمة الكلمات الرئيسية للرموز التعبيرية", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiKeyword", "emojiKeywordDeleted"]}}, "description": "Тип TL: EmojiKeyword."}, "x-tl-type": "Vector<EmojiKeyword>", "description": "الرموز التعبيرية المرتبطة بالكلمات الرئيسية", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "keywords"], "additionalProperties": false}, "emojiURL": {"title": "emojiURL", "description": "HTTP URL والتي يمكن استخدامها لتسجيل الدخول تلقائيًا إلى منصة الترجمة واقتراح بدائل جديدة للرموز التعبيرية. سيكون URL صالحًا لمدة 30 ثانية بعد التوليد", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiURL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiURL"]}, "url": {"type": "string", "x-tl-type": "string", "description": "HTTP URL والتي يمكن استخدامها لتسجيل الدخول تلقائيًا إلى منصة الترجمة واقتراح بدائل جديدة للرموز التعبيرية. سيكون URL صالحًا لمدة 30 ثانية بعد التوليد", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "emojiLanguage": {"title": "emojiLanguage", "description": "لغة الرموز التعبيرية", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiLanguage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiLanguage"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "رمز اللغة", "x-telegram-field-docs": true}}, "required": ["_", "lang_code"], "additionalProperties": false}, "folder": {"title": "folder", "type": "object", "properties": {"_": {"type": "string", "enum": ["folder"]}, "autofill_new_broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "autofill_public_groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "autofill_new_correspondents": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto.", "x-tl-flag": "flags.3?ChatPhoto"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "inputFolderPeer": {"title": "inputFolderPeer", "description": "نظير في مجلد", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFolderPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFolderPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الأقران", "x-telegram-field-docs": true}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "folderPeer": {"title": "folderPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["folderPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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` أيضًا؛ في حالة التعيين، يجب على العملاء أن يطلبوا من المستخدم تحديد الرمز المطابق *قبل* إظهار بقية واجهة مستخدم تأكيد تسجيل الدخول، ويجب التحقق من صحة التحديد باستخدام [messages.checkUrlAuthMatchCode](https://core.telegram.org/method/messages.checkUrlAuthMatchCode.md) قبل المتابعة", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "is_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تحديد ما إذا كان طلب OAuth قد نشأ من تطبيق وليس من موقع ويب؛ عند الضبط، يجب استبدال `domain` في رسالة التأكيد بـ `verified_app_name` (إن وجد) أو \"تطبيق لم يتم التحقق منه\"", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "request_wallet": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "bot": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See [Linking your domain to the bot](https://core.telegram.org/widgets/login.md#linking-your-domain-to-the-bot) for more details.", "x-telegram-field-docs": true}, "domain": {"type": "string", "x-tl-type": "string", "description": "اسم المجال الخاص بموقع الويب الذي سيقوم المستخدم بتسجيل الدخول إليه.", "x-telegram-field-docs": true}, "browser": {"type": "string", "x-tl-type": "string", "description": "المتصفح الذي استخدمه المستخدم لتقديم طلب OAuth", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "platform": {"type": "string", "x-tl-type": "string", "description": "النظام الأساسي (نظام التشغيل) للمستخدم الذي قدم طلب OAuth", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "ip": {"type": "string", "x-tl-type": "string", "description": "عنوان IP الخاص بالمستخدم الذي يقدم طلب OAuth", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "region": {"type": "string", "x-tl-type": "string", "description": "موقع المستخدم، المستنتج من عنوان IP", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "match_codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "قائمة بالرموز التعبيرية أو الرموز، يظهر أحدها حاليًا في صفحة تسجيل الدخول للموقع/التطبيق؛ يجب على المستخدم تحديد المطابقة وتمريرها إلى [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md).`match_code`", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<string>"}, "user_id_hint": {"type": "string", "pattern": "^-?\\d+$", "description": "قد يحتوي على معرف الحساب الذي تم إنشاء طلب تسجيل الدخول له؛ إذا كان يطابق حسابًا تم تسجيل الدخول إليه، فيجب على العملاء التبديل تلقائيًا إلى هذا الحساب وإعادة استدعاء [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth.md) قبل إظهار المطالبة", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "verified_app_name": {"type": "string", "x-tl-type": "string", "description": "لا يمكن ضبطه إلا إذا تم ضبط `is_app` والتحقق من التطبيق؛ يجب استبدال `domain` في رسالة التأكيد عند وجودها", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}, "tc_session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.9?long"}, "tc_client_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.10?string"}}, "required": ["_", "bot", "domain"], "additionalProperties": false}, "urlAuthResultAccepted": {"title": "urlAuthResultAccepted", "description": "تفاصيل حول طلب التفويض المقبول، لمزيد من المعلومات [انقر هنا »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultAccepted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultAccepted"]}, "url": {"type": "string", "x-tl-type": "string", "description": "إذا كان موجودًا، يجب فتح URL في المتصفح الخارجي (قد يستخدم نظامًا مخصصًا للتبديل المباشر إلى تطبيق آخر)؛ في حالة الغياب، يكون تسجيل الدخول ناجحًا ويجب على العملاء ببساطة إظهار نخب التأكيد.  اضبط دائمًا على [زر الروبوت URL التفويض](https://core.telegram.org/api/url-authorization.md#bot-button-url-authorization) و[الرابط URL التفويض](https://core.telegram.org/api/url-authorization.md#link-url-authorization).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "urlAuthResultDefault": {"title": "urlAuthResultDefault", "description": "تفاصيل حول طلب التفويض المقبول، لمزيد من المعلومات [انقر هنا »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultDefault"]}}, "required": ["_"], "additionalProperties": false}, "channelLocationEmpty": {"title": "channelLocationEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelLocation": {"title": "channelLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "geo_point", "address"], "additionalProperties": false}, "peerLocated": {"title": "peerLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerLocated"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "معرف", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputThemeSlug": {"title": "inputThemeSlug", "description": "الموضوع حسب معرف الموضوع", "externalDocs": {"url": "https://core.telegram.org/constructor/inputThemeSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputThemeSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "تم الحصول على معرف السمة الفريد من [رابط عميق للموضوع »](https://core.telegram.org/api/links.md#theme-links)", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "theme": {"title": "theme", "description": "الموضوع", "externalDocs": {"url": "https://core.telegram.org/constructor/theme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["theme"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان المستخدم الحالي هو منشئ هذا الموضوع", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا هو الموضوع الافتراضي", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "for_chat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان هذا المظهر مخصصًا للاستخدام [موضوع الدردشة](https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الموضوع", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول إلى الموضوع", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "معرف الموضوع الفريد", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم الموضوع", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "الموضوع", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Document"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings."}, "x-tl-type": "Vector<ThemeSettings>", "description": "إعدادات الموضوع", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<ThemeSettings>"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "موضوع الرموز التعبيرية", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?string"}, "installs_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد التثبيت", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}}, "required": ["_", "id", "access_hash", "slug", "title"], "additionalProperties": false}, "account.themesNotModified": {"title": "account.themesNotModified", "description": "لم يتم تثبيت أي مواضيع جديدة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.themes": {"title": "account.themes", "description": "المواضيع المثبتة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themes"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "themes": {"type": "array", "items": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "TL Type: Theme."}, "x-tl-type": "Vector<Theme>", "description": "المواضيع", "x-telegram-field-docs": true}}, "required": ["_", "hash", "themes"], "additionalProperties": false}, "auth.loginToken": {"title": "auth.loginToken", "description": "رمز تسجيل الدخول (لـ [تسجيل الدخول إلى رمز الاستجابة السريعة](https://core.telegram.org/api/qr-login.md))", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginToken"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ انتهاء رمز الاستجابة السريعة", "x-telegram-field-docs": true}, "token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "الرمز المميز للعرض في رمز الاستجابة السريعة", "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": "معرف العاصمة", "x-telegram-field-docs": true}, "token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "الرمز الذي سيتم استخدامه لتسجيل الدخول", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "token"], "additionalProperties": false}, "auth.loginTokenSuccess": {"title": "auth.loginTokenSuccess", "description": "نجح تسجيل الدخول عبر الرمز المميز (رمز الاستجابة السريعة)!", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginTokenSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginTokenSuccess"]}, "authorization": {"type": "object", "x-tl-type": "auth.Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.authorization", "auth.authorizationSignUpRequired"]}}, "description": "معلومات التفويض", "x-telegram-field-docs": true}}, "required": ["_", "authorization"], "additionalProperties": false}, "account.contentSettings": {"title": "account.contentSettings", "description": "إعدادات المحتوى الحساسة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.contentSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.contentSettings"]}, "sensitive_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان عرض المحتوى الحساس (NSFW) ممكنًا أم لا", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "sensitive_can_change": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان العميل الحالي تغيير إعدادات المحتوى الحساس لعرض محتوى 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": "لون التمييز، تنسيق ARGB", "x-telegram-field-docs": true}, "outbox_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون تمييز الرسائل الصادرة بتنسيق ARGB", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "message_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "التعبئة المستخدمة كخلفية للرسائل الصادرة بتنسيق RGB24.  إذا تم توفير لون واحد أو لونين متساويين، فهذا يصف التعبئة الصلبة للخلفية.  في حالة توفير لونين مختلفين، يصف اللونين العلوي والسفلي للتدرج بمقدار 0 درجة. إذا تم توفير ثلاثة أو أربعة ألوان، فهذا يصف تعبئة متدرجة حرة للخلفية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<int>"}, "wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWallPaper", "inputWallPaperSlug", "inputWallPaperNoFile"]}}, "description": "[inputWallPaper](https://core.telegram.org/constructor/inputWallPaper.md) أو [inputWallPaperSlug](https://core.telegram.org/constructor/inputWallPaper.md) عند تمرير ملفات خلفية لخلفيات [image](https://core.telegram.org/api/wallpapers.md#image-wallpapers) أو [pattern](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)، [inputWallPaperNoFile](https://core.telegram.org/constructor/inputWallPaperNoFile.md) مع `id=0` بخلاف ذلك.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputWallPaper"}, "wallpaper_settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "[خلفية الشاشة](https://core.telegram.org/api/wallpapers.md) الإعدادات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?WallPaperSettings"}}, "required": ["_", "base_theme", "accent_color"], "additionalProperties": false}, "themeSettings": {"title": "themeSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["themeSettings"]}, "message_colors_animated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic"]}}, "description": "Тип TL: BaseTheme."}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "outbox_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "message_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL 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": "إجمالي عدد الأصوات لجميع الخيارات (أو فقط للمختار `option`، إذا تم تقديمه إلى [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes.md))", "x-telegram-field-docs": true}, "votes": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerVote", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerVote", "messagePeerVoteInputOption", "messagePeerVoteMultiple"]}}, "description": "Тип TL: MessagePeerVote."}, "x-tl-type": "Vector<MessagePeerVote>", "description": "معلومات التصويت لكل مستخدم", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "مرشح الحوار AKA [مجلد](https://core.telegram.org/api/folders.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilter"]}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تضمين جميع جهات الاتصال في هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تضمين جميع جهات الاتصال غير الموجودة في هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تضمين جميع المجموعات في هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تضمين جميع القنوات في هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "bots": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم تضمين جميع برامج الروبوت في هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "exclude_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم استبعاد الدردشات الصامتة من هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "exclude_read": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم استبعاد الدردشات المقروءة من هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "exclude_archived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم استبعاد الدردشات المؤرشفة من هذا [المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطها، فإن أي رموز تعبيرية متحركة موجودة في `title` يجب ألا تكون متحركة ويجب بدلاً من ذلك تجميدها في الإطار الأول.", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "[اسم المجلد](https://core.telegram.org/api/folders.md) (الحد الأقصى 12 UTF-8 حرف)", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "رمز تعبيري لاستخدامه كرمز للمجلد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف اللون لـ [علامة المجلد المرتبطة بهذا المجلد، انظر هنا »](https://core.telegram.org/api/folders.md#folder-tags) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?int"}, "pinned_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL 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": "استبعاد الدردشات التالية من هذا [folder](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "pinned_peers", "include_peers", "exclude_peers"], "additionalProperties": false}, "dialogFilterDefault": {"title": "dialogFilterDefault", "description": "يُستخدم فقط عند إعادة ترتيب المجلدات للإشارة إلى المجلد الافتراضي (جميع الدردشات).", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterDefault"]}}, "required": ["_"], "additionalProperties": false}, "dialogFilterChatlist": {"title": "dialogFilterChatlist", "description": "مجلد تم استيراده باستخدام [رابط عميق لمجلد الدردشة»](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterChatlist"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterChatlist"]}, "has_my_invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان المستخدم الحالي قد أنشأ بعض [الروابط العميقة لمجلد الدردشة»](https://core.telegram.org/api/links.md#chat-folder-links) لمشاركة المجلد أيضًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطها، فإن أي رموز تعبيرية متحركة موجودة في `title` يجب ألا تكون متحركة ويجب بدلاً من ذلك تجميدها في الإطار الأول.", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف المجلد", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "اسم المجلد (بحد أقصى 12 UTF-8 أحرف)", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "رمز تعبيري لاستخدامه كرمز للمجلد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف اللون لـ [علامة المجلد المرتبطة بهذا المجلد، انظر هنا »](https://core.telegram.org/api/folders.md#folder-tags) لمزيد من المعلومات.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?int"}, "pinned_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL 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": "عدد المشاهدات لكل رسم بياني للساعة (مطلق)", "x-telegram-field-docs": true}, "interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للتفاعلات (مطلق)", "x-telegram-field-docs": true}, "iv_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للتفاعلات IV (مطلق)", "x-telegram-field-docs": true}, "views_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "المشاهدات حسب الرسم البياني المصدر (مطلق)", "x-telegram-field-docs": true}, "new_followers_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "المتابعين الجدد حسب الرسم البياني المصدر (مطلق)", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للغة المشترك (مخطط دائري)", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "رسم بياني يحتوي على عدد التفاعلات على المشاركات المصنفة حسب العاطفة", "x-telegram-field-docs": true}, "story_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "رسم بياني يحتوي على عدد مرات مشاهدة القصة ومشاركاتها", "x-telegram-field-docs": true}, "story_reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "رسم بياني يحتوي على عدد ردود الفعل على القصص المصنفة حسب العاطفة", "x-telegram-field-docs": true}, "recent_posts_interactions": {"type": "array", "items": {"type": "object", "x-tl-type": "PostInteractionCounters", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postInteractionCountersMessage", "postInteractionCountersStory"]}}, "description": "Тип TL: PostInteractionCounters."}, "x-tl-type": "Vector<PostInteractionCounters>", "description": "إحصائيات تفصيلية حول عدد المشاهدات والمشاركات للرسائل والقصص المرسلة مؤخرًا", "x-telegram-field-docs": true}}, "required": ["_", "period", "followers", "views_per_post", "shares_per_post", "reactions_per_post", "views_per_story", "shares_per_story", "reactions_per_story", "enabled_notifications", "growth_graph", "followers_graph", "mute_graph", "top_hours_graph", "interactions_graph", "iv_interactions_graph", "views_by_source_graph", "new_followers_by_source_graph", "languages_graph", "reactions_by_emotion_graph", "story_interactions_graph", "story_reactions_by_emotion_graph", "recent_posts_interactions"], "additionalProperties": false}, "help.promoDataEmpty": {"title": "help.promoDataEmpty", "description": "لا تتوفر معلومات PSA/MTProxy", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoDataEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoDataEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "أعد جلب معلومات PSA/MTProxy بعد عدد الثواني المحدد", "x-telegram-field-docs": true}}, "required": ["_", "expires"], "additionalProperties": false}, "help.promoData": {"title": "help.promoData", "description": "مجموعة من الاقتراحات المفيدة ونظير برعاية PSA/MTProxy، راجع [هنا »](https://core.telegram.org/api/config.md#suggestions) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoData"]}, "proxy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يتم تعيينه عند الاتصال باستخدام MTProxy الذي قام بتكوين نظير مرتبط (سيتم تمريره في `peer`، i.e. القناة التي ترعى MTProxy) والتي يجب تثبيتها أعلى قائمة الدردشة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unixtime متى يتم إعادة الاستدعاء [help.getPromoData](https://core.telegram.org/method/help.getPromoData.md).", "x-telegram-field-docs": true}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "MTProxy/PSA نظير", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Peer"}, "psa_type": {"type": "string", "x-tl-type": "string", "description": "لإعلان الخدمة العامة `peer`، يشير إلى نوع 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": "[صورة شخصية متحركة](https://core.telegram.org/api/files.md#animated-profile-pictures) بتنسيق MPEG4", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSize"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSize"]}, "type": {"type": "string", "x-tl-type": "string", "description": "[videoSize.type القيمة »](https://core.telegram.org/api/files.md#videosizetype-values)", "x-telegram-field-docs": true}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عرض الفيديو", "x-telegram-field-docs": true}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ارتفاع الفيديو", "x-telegram-field-docs": true}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "حجم الملف", "x-telegram-field-docs": true}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "الطابع الزمني الذي يجب أن يظهر كمعاينة ثابتة للمستخدم (بالثواني)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?double"}}, "required": ["_", "type", "w", "h", "size"], "additionalProperties": false}, "videoSizeEmojiMarkup": {"title": "videoSizeEmojiMarkup", "description": "[صورة ملف شخصي متحركة](https://core.telegram.org/api/files.md#animated-profile-pictures) مبنية على [ملصق رموز تعبيرية مخصص](https://core.telegram.org/api/custom-emoji.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSizeEmojiMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSizeEmojiMarkup"]}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md): يظهر ملصق الرموز التعبيرية المخصص في منتصف صورة الملف الشخصي ويشغل 67% منها على الأكثر.", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1، 2، 3 أو 4 RBG-24 لونًا يُستخدم لإنشاء خلفية صلبة (1) أو متدرجة (2) أو متدرجة حرة (3، 4)، على غرار كيفية إنشاء [ملء الخلفيات](https://core.telegram.org/api/wallpapers.md#fill-types). زاوية الدوران للخلفيات المتدرجة هي 0.", "x-telegram-field-docs": true}}, "required": ["_", "emoji_id", "background_colors"], "additionalProperties": false}, "videoSizeStickerMarkup": {"title": "videoSizeStickerMarkup", "description": "[صورة ملف شخصي متحركة](https://core.telegram.org/api/files.md#animated-profile-pictures) مبنية على [ملصق](https://core.telegram.org/api/stickers.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSizeStickerMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSizeStickerMarkup"]}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "مجموعة ملصقات", "x-telegram-field-docs": true}, "sticker_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الملصق", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1، 2، 3 أو 4 RBG-24 لونًا يُستخدم لإنشاء خلفية صلبة (1) أو متدرجة (2) أو متدرجة حرة (3، 4)، على غرار كيفية إنشاء [ملء الخلفيات](https://core.telegram.org/api/wallpapers.md#fill-types). زاوية الدوران للخلفيات المتدرجة هي 0.", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "sticker_id", "background_colors"], "additionalProperties": false}, "statsGroupTopPoster": {"title": "statsGroupTopPoster", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "avg_chars": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "messages", "avg_chars"], "additionalProperties": false}, "statsGroupTopAdmin": {"title": "statsGroupTopAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "deleted": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "kicked": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "banned": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "deleted", "kicked", "banned"], "additionalProperties": false}, "statsGroupTopInviter": {"title": "statsGroupTopInviter", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invitations": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "invitations"], "additionalProperties": false}, "stats.megagroupStats": {"title": "stats.megagroupStats", "description": "المجموعة الفائقة [الإحصائيات](https://core.telegram.org/api/stats.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.megagroupStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.megagroupStats"]}, "period": {"type": "object", "x-tl-type": "StatsDateRangeDays", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}}, "description": "الفترة في الاعتبار", "x-telegram-field-docs": true}, "members": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "تغيير عدد الأعضاء للفترة قيد النظر", "x-telegram-field-docs": true}, "messages": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "تغيير رقم الرسالة للفترة المعنية", "x-telegram-field-docs": true}, "viewers": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "عدد المستخدمين الذين شاهدوا الرسائل، مع مراعاة النطاق", "x-telegram-field-docs": true}, "posters": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "عدد المستخدمين الذين قاموا بنشر الرسائل، مع أخذ النطاق في الاعتبار", "x-telegram-field-docs": true}, "growth_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني لنمو المجموعة الفائقة (عدد المشتركين المطلق)", "x-telegram-field-docs": true}, "members_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "نمو الأعضاء (عدد المشتركين النسبي)", "x-telegram-field-docs": true}, "new_members_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الأعضاء الجدد حسب الرسم البياني المصدر", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للغة المشترك (مخطط دائري)", "x-telegram-field-docs": true}, "messages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني لنشاط الرسالة (الرسم البياني الشريطي المكدس، نوع الرسالة)", "x-telegram-field-docs": true}, "actions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني لنشاط المجموعة (المحذوفة، الرسائل المعدلة، المستخدمين المحظورين)", "x-telegram-field-docs": true}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للنشاط لكل ساعة (مطلق)", "x-telegram-field-docs": true}, "weekdays_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "الرسم البياني للنشاط لكل يوم من أيام الأسبوع (مطلق)", "x-telegram-field-docs": true}, "top_posters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopPoster", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}}, "description": "Тип TL: StatsGroupTopPoster."}, "x-tl-type": "Vector<StatsGroupTopPoster>", "description": "معلومات عن أعضاء المجموعة الأكثر نشاطا", "x-telegram-field-docs": true}, "top_admins": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopAdmin", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}}, "description": "Тип TL: StatsGroupTopAdmin."}, "x-tl-type": "Vector<StatsGroupTopAdmin>", "description": "معلومات حول مدراء المجموعة الأكثر نشاطًا", "x-telegram-field-docs": true}, "top_inviters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopInviter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}}, "description": "Тип TL: StatsGroupTopInviter."}, "x-tl-type": "Vector<StatsGroupTopInviter>", "description": "معلومات حول المدعوين إلى المجموعة الأكثر نشاطًا", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "سواء كانت الدردشات التي تم إلغاء كتم صوتها والتي تم تضمينها دائمًا أو تثبيتها في [folder](https://core.telegram.org/api/folders.md)، سيتم الاحتفاظ بها في قائمة المحادثات الأرشيفية عندما تتلقى رسالة جديدة. يتم تجاهله إذا تم ضبط `keep_archived_unmuted`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "hide_read_marks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيين هذه العلامة، فسيتم تطبيق المفتاح [inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md) أيضًا على القدرة على استخدام [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md) على الرسائل المرسلة إلينا.  وهذا يعني أن المستخدمين الذين لا يستطيعون رؤية آخر تاريخ محدد عبر الإنترنت لدينا بسبب القيمة الحالية لمفتاح [inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md) سيتلقون خطأ `403 USER_PRIVACY_RESTRICTED` عند استدعاء [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md) لجلب تاريخ القراءة الدقيق للرسالة التي أرسلوها إلينا.  سيتم تعيين علامة [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` للمستخدمين الذين قاموا بتمكين هذه العلامة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "new_noncontact_peers_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "انظر [هنا لمزيد من المعلومات حول هذا العلم »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "display_gifts_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تمكين أو تعطيل علامة [userFull](https://core.telegram.org/constructor/userFull.md).`display_gifts_button`: إذا تم تعيين علامة [userFull](https://core.telegram.org/constructor/userFull.md).`display_gifts_button` لكل منا ولمستخدم آخر، فيجب دائمًا عرض زر الهدية في حقل النص في الدردشات الخاصة مع المستخدم الآخر: بمجرد النقر عليه، يجب عرض واجهة مستخدم الهدية، مما يوفر خيارات المستخدم لإهداء [Telegram Premium »](https://core.telegram.org/api/premium.md#gifting-telegram-premium) الاشتراكات أو [هدايا برقية »](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.، بترتيب تنازلي لمعرف الرسالة).", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة لآخر رد في هذا [الموضوع](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة لآخر رسالة واردة تمت قراءتها في هذا [الموضوع](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة لآخر رسالة صادرة تمت قراءتها في هذا [الموضوع](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الرسائل غير المقروءة", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات المذكورة في المنشئ", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "معرف المكالمة الجماعية", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "تجزئة الوصول إلى المكالمات الجماعية", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputGroupCallSlug": {"title": "inputGroupCallSlug", "description": "حدد [مكالمة جماعية »](https://core.telegram.org/api/group-calls.md#conference-calls) باستخدام الارتباط الثابت من رابط الدعوة الخاص بها.\n\nلا يمكن استخدام هذا المنشئ إلا للمكالمات الجماعية. لا يمكن استخدامه لمحادثات الفيديو/البث المباشر أو القصص المباشرة أو أي نوع آخر من المكالمات الجماعية.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "سبيكة من [رابط المؤتمر »](https://core.telegram.org/api/links.md#conference-links).", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputGroupCallInviteMessage": {"title": "inputGroupCallInviteMessage", "description": "يحدد [مكالمة جماعية »](https://core.telegram.org/api/group-calls.md#conference-calls) باستخدام رسالة خدمة الدعوة [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md) الخاصة بها.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallInviteMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallInviteMessage"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md).", "x-telegram-field-docs": true}}, "required": ["_", "msg_id"], "additionalProperties": false}, "groupCallParticipant": {"title": "groupCallParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}, "muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_self_unmute": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "just_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "versioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "muted_by_you": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "volume_by_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "إذا لم تكن فارغة، فستكون القائمة المحددة للمشاركين جزئية، ويمكن جلب المزيد من المشاركين بتحديد هذه المعلمة كـ `offset` في [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "نوع النظير: [supergroup](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeMegagroup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeMegagroup"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBroadcast": {"title": "inlineQueryPeerTypeBroadcast", "description": "نوع النظير: [القناة](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBroadcast"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBotPM": {"title": "inlineQueryPeerTypeBotPM", "description": "نوع النظير: محادثة خاصة مع الروبوت.", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBotPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBotPM"]}}, "required": ["_"], "additionalProperties": false}, "messages.historyImport": {"title": "messages.historyImport", "description": "معرف [جلسة استيراد دردشة محددة، انقر هنا لمزيد من المعلومات »](https://core.telegram.org/api/import.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.historyImport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.historyImport"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف استيراد التاريخ](https://core.telegram.org/api/import.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "messages.historyImportParsed": {"title": "messages.historyImportParsed", "description": "يحتوي على معلومات حول ملف تصدير الدردشة [تم إنشاؤه بواسطة تطبيق دردشة أجنبي، انقر هنا لمزيد من المعلومات](https://core.telegram.org/api/import.md).\nإذا لم يتم تعيين العلامتين `pm` أو `group`، فسيتم إنشاء تصدير الدردشة المحدد من دردشة من نوع غير معروف.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.historyImportParsed"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.historyImportParsed"]}, "pm": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تم إنشاء ملف تصدير الدردشة من محادثة خاصة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "group": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تم إنشاء ملف تصدير الدردشة من دردشة جماعية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "عنوان الدردشة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}}, "required": ["_"], "additionalProperties": false}, "messages.affectedFoundMessages": {"title": "messages.affectedFoundMessages", "description": "تم العثور على الرسائل وتأثرت بالتغييرات", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedFoundMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedFoundMessages"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[عدد الأحداث بعد الجيل](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[عدد الأحداث التي تم إنشاؤها](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا كان أكبر من الصفر، يجب تكرار الطلب لإزالة المزيد من الرسائل", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "معرفات الرسائل المتأثرة", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count", "offset", "messages"], "additionalProperties": false}, "chatInviteImporter": {"title": "chatInviteImporter", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteImporter"]}, "requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "approved_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "messages.exportedChatInvites": {"title": "messages.exportedChatInvites", "description": "معلومات حول دعوات الدردشة التي تم تصديرها بواسطة مسؤول معين.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInvites"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الدعوات التي تم تصديرها بواسطة المشرف", "x-telegram-field-docs": true}, "invites": {"type": "array", "items": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL 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": "ستكون أوامر الروبوت المحددة صالحة لجميع مسؤولي المجموعة المحددة [group or supergroup](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": "في حالة التعيين، يحدد الحد الأدنى لعدد الرسائل بين الرسائل المدعومة المعروضة؛ وإلا فيجب إظهار رسالة دعائية واحدة فقط بعد جميع الرسائل العادية.", "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": "يشير إلى الموضع المطلق لـ `messages[0]` ضمن إجمالي النتائج المحددة بالعدد `count`.  يعد هذا مفيدًا، على سبيل المثال، إذا أردنا عرض عداد `progress/total` (مثل `photo 134 of 200`، لجميع الوسائط في الدردشة، يمكننا ببساطة استخدام `photo ${offset_id_offset} of ${count}`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "periods": {"type": "array", "items": {"type": "object", "x-tl-type": "SearchResultsCalendarPeriod", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchResultsCalendarPeriod"]}}, "description": "Тип TL: SearchResultsCalendarPeriod."}, "x-tl-type": "Vector<SearchResultsCalendarPeriod>", "description": "يُستخدم لتقسيم `messages` حسب الأيام: يتم إرجاع منشئات [SearchResultsCalendarPeriod](https://core.telegram.org/type/SearchResultsCalendarPeriod.md) المتعددة، يحتوي كل منها على معلومات حول العدد الأول والأخير والإجمالي للرسائل المطابقة لعامل التصفية التي تم إرسالها في يوم محدد.   يمكن استخدام هذه المعلومات بسهولة لتقسيم `messages` المرتجع حسب اليوم.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "الرسائل", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "متاح RTMP قنوات البث. قد يكون فارغًا أثناء عدم قيام الناشر الخارجي بإرسال الوسائط", "x-telegram-field-docs": true}}, "required": ["_", "channels"], "additionalProperties": false}, "phone.groupCallStreamRtmpUrl": {"title": "phone.groupCallStreamRtmpUrl", "description": "يحتوي على RTMP النشر URL ومفتاح البث السري، راجع [إنشاء ونشر RTMP بث مباشر »](https://core.telegram.org/api/group-calls.md#creating-and-publishing-an-rtmp-livestream).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStreamRtmpUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStreamRtmpUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "RTMP URL", "x-telegram-field-docs": true}, "key": {"type": "string", "x-tl-type": "string", "description": "مفتاح الدفق السري", "x-telegram-field-docs": true}}, "required": ["_", "url", "key"], "additionalProperties": false}, "attachMenuBotIconColor": {"title": "attachMenuBotIconColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIconColor"]}, "name": {"type": "string", "x-tl-type": "string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "name", "color"], "additionalProperties": false}, "attachMenuBotIcon": {"title": "attachMenuBotIcon", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIcon"]}, "name": {"type": "string", "x-tl-type": "string"}, "icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "لم تتغير قائمة تطبيقات bot mini", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuBots": {"title": "attachMenuBots", "description": "يمثل قائمة بـ [تطبيقات الروبوت الصغيرة التي يمكن تشغيلها من قائمة المرفقات »](https://core.telegram.org/api/bots/attach.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBots"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "bots": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}}, "description": "Тип TL: AttachMenuBot."}, "x-tl-type": "Vector<AttachMenuBot>", "description": "قائمة [تطبيقات الروبوت المصغرة التي يمكن تشغيلها من القائمة المرفقة »](https://core.telegram.org/api/bots/attach.md)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "يحتوي على عرض الويب 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 (يتم إرجاعه فقط بواسطة [التطبيقات المصغرة للزر المضمن](https://core.telegram.org/api/bots/webapps.md#inline-button-mini-apps)، [التطبيقات المصغرة لزر القائمة](https://core.telegram.org/api/bots/webapps.md#menu-button-mini-apps)، [التطبيقات المصغرة لقائمة المرفقات](https://core.telegram.org/api/bots/webapps.md#attachment-menu-mini-apps)).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "url": {"type": "string", "x-tl-type": "string", "description": "عرض الويب URL لفتح", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "webViewMessageSent": {"title": "webViewMessageSent", "description": "معلومات حول رسالة عرض ويب مضمنة مرسلة", "externalDocs": {"url": "https://core.telegram.org/constructor/webViewMessageSent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["webViewMessageSent"]}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "معرف الرسالة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputBotInlineMessageID"}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonDefault": {"title": "botMenuButtonDefault", "description": "لم يتم إرجاع العنصر النائب [زر قائمة الروبوت](https://core.telegram.org/api/bots/menu.md) إلى المستخدمين مطلقًا: راجع [المستندات لمزيد من المعلومات](https://core.telegram.org/api/bots/menu.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonCommands": {"title": "botMenuButtonCommands", "description": "[زر قائمة الروبوت](https://core.telegram.org/api/bots/menu.md) الذي يفتح قائمة أوامر الروبوت عند النقر عليه.", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonCommands"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonCommands"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButton": {"title": "botMenuButton", "description": "[زر قائمة الروبوت](https://core.telegram.org/api/bots/menu.md) الذي يفتح [تطبيق الويب](https://core.telegram.org/api/bots/webapps.md) عند النقر عليه.", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButton"]}, "text": {"type": "string", "x-tl-type": "string", "description": "سيتم عرض العنوان على زر القائمة بدلاً من \"القائمة\"", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "URL من [تطبيق الويب](https://core.telegram.org/api/bots/webapps.md) لفتحه عندما ينقر المستخدم على الزر", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "account.savedRingtonesNotModified": {"title": "account.savedRingtonesNotModified", "description": "لم تتغير قائمة صوت الإخطار.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtonesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtonesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.savedRingtones": {"title": "account.savedRingtones", "description": "قائمة أصوات الإشعارات المحفوظة", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtones"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtones"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "ringtones": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "صوت الإشعار لم يكن بتنسيق MP3 وتم تحويله وحفظه بنجاح، استخدم [Document](https://core.telegram.org/type/Document.md) المرتجع للإشارة إلى صوت الإشعارات من الآن فصاعدًا", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtoneConverted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtoneConverted"]}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "صوت الإخطار المحول", "x-telegram-field-docs": true}}, "required": ["_", "document"], "additionalProperties": false}, "attachMenuPeerTypeSameBotPM": {"title": "attachMenuPeerTypeSameBotPM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeSameBotPM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBotPM": {"title": "attachMenuPeerTypeBotPM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBotPM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypePM": {"title": "attachMenuPeerTypePM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypePM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeChat": {"title": "attachMenuPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBroadcast": {"title": "attachMenuPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inputInvoiceMessage": {"title": "inputInvoiceMessage", "description": "فاتورة موجودة في رسالة [messageMediaInvoice](https://core.telegram.org/constructor/messageMediaInvoice.md) أو [الوسائط المدفوعة »](https://core.telegram.org/api/paid-media.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "الدردشة حيث تم إرسال الفاتورة/الوسائط المدفوعة", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "inputInvoiceSlug": {"title": "inputInvoiceSlug", "description": "سبيكة فاتورة مأخوذة من [رابط عميق للفاتورة](https://core.telegram.org/api/links.md#invoice-links) أو من [`premium_invoice_slug` معلمة تكوين التطبيق »](https://core.telegram.org/api/config.md#premium-invoice-slug)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "سبيكة الفاتورة", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputInvoicePremiumGiftCode": {"title": "inputInvoicePremiumGiftCode", "description": "يُستخدم إذا كان المستخدم يرغب في بدء قناة/مجموعة فائقة [هبة](https://core.telegram.org/api/giveaways.md) أو إرسال بعض [رموز الهدايا](https://core.telegram.org/api/giveaways.md) إلى أعضاء قناة/مجموعة فائقة، مقابل [تعزيزات](https://core.telegram.org/api/boost.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumGiftCode"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "يجب أن يتم ملؤها بـ [inputStorePaymentPremiumGiveaway](https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway.md) لـ [giveaways](https://core.telegram.org/api/giveaways.md) و[inputStorePaymentPremiumGiftCode](https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode.md) لـ [gifts](https://core.telegram.org/api/giveaways.md).", "x-telegram-field-docs": true}, "option": {"type": "object", "x-tl-type": "PremiumGiftCodeOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["premiumGiftCodeOption"]}}, "description": "يجب ملؤها بأحد خيارات الهبات التي تم إرجاعها بواسطة [payments.getPremiumGiftCodeOptions](https://core.telegram.org/method/payments.getPremiumGiftCodeOptions.md)، راجع وثائق [الهبات »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات.", "x-telegram-field-docs": true}}, "required": ["_", "purpose", "option"], "additionalProperties": false}, "inputInvoiceStars": {"title": "inputInvoiceStars", "description": "يستخدم لتعبئة رصيد [Telegram Stars](https://core.telegram.org/api/stars.md) للحساب الجاري أو حساب شخص آخر، أو لبدء [هبة Telegram Star »](https://core.telegram.org/api/giveaways.md#star-giveaways).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStars"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "[inputStorePaymentStarsGiveaway](https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway.md)، [inputStorePaymentStarsTopup](https://core.telegram.org/constructor/inputStorePaymentStarsTopup.md) أو [inputStorePaymentStarsGift](https://core.telegram.org/constructor/inputStorePaymentStarsGift.md).", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceChatInviteSubscription": {"title": "inputInvoiceChatInviteSubscription", "description": "تستخدم للدفع مقابل [اشتراك Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceChatInviteSubscription"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceChatInviteSubscription"]}, "hash": {"type": "string", "x-tl-type": "string", "description": "[رابط الدعوة لاشتراك تيليجرام ستار »](https://core.telegram.org/api/stars.md#star-subscriptions)", "x-telegram-field-docs": true}}, "required": ["_", "hash"], "additionalProperties": false}, "inputInvoiceStarGift": {"title": "inputInvoiceStarGift", "description": "تستخدم لشراء [هدية نجمة Telegram، انظر هنا »](https://core.telegram.org/api/gifts.md) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGift"]}, "hide_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة التعيين، سيتم إخفاء اسمك إذا قرر المستخدم الوجهة عرض الهدية في ملفه الشخصي (سيظل يرى أنك أرسلت الهدية)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "include_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ادفع أيضًا مقابل ترقية الهدية في نهاية المطاف إلى [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "متلقي الهدية.", "x-telegram-field-docs": true}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الهدية من [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "رسالة اختيارية، مرفقة مع الهدية.  تم تحديد الحد الأقصى لطول هذا الحقل في [stargifts_message_length_max قيمة تكوين العميل »](https://core.telegram.org/api/config.md#stargifts-message-length-max).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "peer", "gift_id"], "additionalProperties": false}, "inputInvoiceStarGiftUpgrade": {"title": "inputInvoiceStarGiftUpgrade", "description": "يُستخدم لـ [الدفع لترقية هدية إلى هدية قابلة للتحصيل](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift)، راجع وثائق [الهدايا القابلة للتحصيل»](https://core.telegram.org/api/gifts.md#collectible-gifts) للحصول على مزيد من المعلومات حول التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftUpgrade"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftUpgrade"]}, "keep_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "قم بتعيين هذه العلامة للاحتفاظ بنص الهدية الأصلي والمرسل والمتلقي في الهدية التي تمت ترقيتها كسمة [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "معرف الهدية المستلمة للترقية.", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftTransfer": {"title": "inputInvoiceStarGiftTransfer", "description": "يستخدم لـ [الدفع لتحويل هدية قابلة للتحصيل إلى نظير آخر](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts)، راجع وثائق [الهدايا »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftTransfer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftTransfer"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "معرف الهدية المستلمة", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "النظير الوجهة", "x-telegram-field-docs": true}}, "required": ["_", "stargift", "to_id"], "additionalProperties": false}, "inputInvoicePremiumGiftStars": {"title": "inputInvoicePremiumGiftStars", "description": "يستخدم لإهداء اشتراك [Telegram Premium](https://core.telegram.org/api/premium.md) لمستخدم آخر، والدفع باستخدام [Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumGiftStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumGiftStars"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "من سيحصل على الاشتراك المهدى.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "مدة الاشتراك بالأشهر، يجب أن يكون أحد الخيارات مع `currency == \"XTR\"` يتم إرجاعه بواسطة [payments.getPremiumGiftCodeOptions](https://core.telegram.org/method/payments.getPremiumGiftCodeOptions.md).", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "الرسالة مرفقة مع الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "user_id", "months"], "additionalProperties": false}, "inputInvoiceBusinessBotTransferStars": {"title": "inputInvoiceBusinessBotTransferStars", "description": "قم بنقل النجوم من رصيد حساب المستخدم [المتصل بروبوت الأعمال](https://core.telegram.org/api/bots/connected-business-bots.md)، إلى رصيد [روبوت الأعمال](https://core.telegram.org/api/bots/connected-business-bots.md)، راجع [هنا »](https://core.telegram.org/api/stars.md#transferring-stars-from-a-business-account-to-the-business-bot) لمزيد من المعلومات حول التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceBusinessBotTransferStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceBusinessBotTransferStars"]}, "bot": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "دائمًا [inputUserSelf](https://core.telegram.org/constructor/inputUserSelf.md).", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "عدد النجوم المراد نقلها.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "bot", "stars"], "additionalProperties": false}, "inputInvoiceStarGiftResale": {"title": "inputInvoiceStarGiftResale", "description": "تُستخدم لشراء [هدية قابلة للتحصيل](https://core.telegram.org/api/gifts.md#collectible-gifts) قيد إعادة البيع حاليًا، راجع [هنا](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) لمزيد من المعلومات حول التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftResale"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftResale"]}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "اشتري الهدية باستخدام TON.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "show_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "slug": {"type": "string", "x-tl-type": "string", "description": "سبيكة من الهدية للشراء.", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "متلقي الهدية .", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL 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": "تجزئة الترقية من [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md).`prepaid_upgrade_hash` أو [savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`prepaid_upgrade_hash`.", "x-telegram-field-docs": true}}, "required": ["_", "peer", "hash"], "additionalProperties": false}, "inputInvoicePremiumAuthCode": {"title": "inputInvoicePremiumAuthCode", "description": "يُستخدم للدفع مقابل رموز تسجيل الدخول، في حالة ارتفاع تكلفة رموز التحقق SMS لبلد/مزود المستخدم، راجع [هنا »](https://core.telegram.org/api/auth.md#paid-auth) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumAuthCode"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "يجب أن يحتوي على [inputStorePaymentAuthCode](https://core.telegram.org/constructor/inputStorePaymentAuthCode.md).", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceStarGiftDropOriginalDetails": {"title": "inputInvoiceStarGiftDropOriginalDetails", "description": "يتم استخدامه للدفع مقابل إزالة سمة [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md) من هدية قابلة للتحصيل، راجع [هنا »](https://core.telegram.org/api/gifts.md#dropping-the-original-details-of-an-upgraded-gift) للاطلاع على التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftDropOriginalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftDropOriginalDetails"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "الهدية القابلة للتحصيل التي يجب إزالة سمتها [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md).", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftAuctionBid": {"title": "inputInvoiceStarGiftAuctionBid", "description": "تستخدم لتقديم عرض في [مزاد الهدايا القابلة للتحصيل »](https://core.telegram.org/api/auctions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftAuctionBid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftAuctionBid"]}, "hide_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيتم إخفاء اسمك إذا قرر النظير الوجهة عرض الهدية في ملفه الشخصي (سيظل يرى أنك أرسلت الهدية).     لا يجب تعيينه عند تحديث عرض أسعار موجود، حيث لا يمكن تغيير القيمة لعروض الأسعار الحالية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "update_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يجب تعيينه عند زيادة عرض أسعار موجود بالفعل.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "معرف المستخدم أو القناة (فقط في حالة تعيين [channelFull](https://core.telegram.org/constructor/channelFull.md).`stargifts_available`) الذي سيحصل على الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputPeer"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الهدية من [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "المبلغ الإجمالي للمزايدة في [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "رسالة اختيارية سيتم إرفاقها بالهدية إذا انتهى بنا الأمر بالفوز بهذه الجولة: تم تحديد الحد الأقصى لطول هذا الحقل في [stargifts_message_length_max قيمة تكوين العميل »](https://core.telegram.org/api/config.md#stargifts-message-length-max).     لا يجب تعيينه عند تحديث عرض أسعار موجود، حيث لا يمكن تغيير القيمة لعروض الأسعار الحالية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "gift_id", "bid_amount"], "additionalProperties": false}, "payments.exportedInvoice": {"title": "payments.exportedInvoice", "description": "تم تصدير [رابط عميق للفاتورة](https://core.telegram.org/api/links.md#invoice-links)", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.exportedInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.exportedInvoice"]}, "url": {"type": "string", "x-tl-type": "string", "description": "تم تصدير [رابط عميق للفاتورة](https://core.telegram.org/api/links.md#invoice-links)", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "messages.transcribedAudio": {"title": "messages.transcribedAudio", "description": "[النص المكتوب من رسالة صوتية »](https://core.telegram.org/api/transcribe.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.transcribedAudio"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.transcribedAudio"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كان النسخ جزئيًا لأن النسخ الصوتي لا يزال قيد التقدم، إذا تم تعيينه، فقد يتلقى المستخدم المزيد من تحديثات [updateTranscribedAudio](https://core.telegram.org/constructor/updateTranscribedAudio.md) مع النسخ المحدث.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف النسخ", "x-tl-type": "long", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "النص المكتوب", "x-telegram-field-docs": true}, "trial_remains_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة لغير مستخدمي [Premium](https://core.telegram.org/api/premium.md)، سيتم تعيين هذه العلامة للإشارة إلى النسخ المتبقية في الفترة التجريبية المجانية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "trial_remains_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "بالنسبة لغير مستخدمي [Premium](https://core.telegram.org/api/premium.md)، سيتم تعيين هذه العلامة، للإشارة إلى التاريخ الذي سيتم فيه إعادة تعيين العداد `trial_remains_num` إلى الحد الأقصى لقيمة [transcribe_audio_trial_weekly_number](https://core.telegram.org/api/config.md#transcribe-audio-trial-weekly-number).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "transcription_id", "text"], "additionalProperties": false}, "help.premiumPromo": {"title": "help.premiumPromo", "description": "معلومات الترويج لـ Telegram Premium\n\nلاحظ أن الحقول `video_sections`+`videos` هي قائمة بمقاطع الفيديو ومعرفات الميزات المتميزة المقابلة لها.\nإنها تعادل قسم => قاموس فيديو، بمفاتيح من `video_section` وقيم من `videos`.\nتتوافق المفاتيح الموجودة في `video_sections` مع معرّف ميزة محددة، ويجب عرض الفيديو الترويجي المرتبط عند النقر فوق صف الميزة المرتبطة.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.premiumPromo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.premiumPromo"]}, "status_text": {"type": "string", "x-tl-type": "string", "description": "وصف الحالة الحالية لاشتراك Telegram Premium الخاص بالمستخدم", "x-telegram-field-docs": true}, "status_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL 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 Premium", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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 Premium", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumSubscription"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription"]}, "restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعتبر \"صحيح\" إذا كان هذا بمثابة استعادة لعملية شراء Telegram Premium؛ فقط لمتجر التطبيقات", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يعتبر \"صحيح\" إذا كانت هذه ترقية من اشتراك شهري إلى اشتراك سنوي؛ فقط لمتجر التطبيقات", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "inputStorePaymentGiftPremium": {"title": "inputStorePaymentGiftPremium", "description": "معلومات حول شراء Telegram Premium كهدية", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentGiftPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentGiftPremium"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "المستخدم الذي تم إهداء اشتراك Telegram Premium إليه", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر المنتج بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مضاعف). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentPremiumGiftCode": {"title": "inputStorePaymentPremiumGiftCode", "description": "يُستخدم لتقديم اشتراكات [Telegram Premium](https://core.telegram.org/api/premium.md) فقط لبعض المشتركين المحددين في قناة/مجموعة عملاقة أو لبعض جهات الاتصال لدينا، راجع [هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات حول الهدايا والهدايا.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumGiftCode"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "المستخدمون الذين سيحصلون على اشتراكات [Telegram Premium](https://core.telegram.org/api/premium.md).", "x-telegram-field-docs": true}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "إذا تم تعيينها، فسيتم إرسال الهدايا نيابة عن القناة/المجموعة الفائقة التي نتولى إدارتها، والتي ستقوم أيضًا بتعيين بعض [التعزيزات](https://core.telegram.org/api/boost.md) لها. بخلاف ذلك، سيتم إرسال الهدية مباشرة من المستخدم الذي قام بتسجيل الدخول حاليًا، وسنحصل على بعض [فتحات التعزيز](https://core.telegram.org/api/boost.md) الإضافية. انظر [هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات حول الهدايا والهدايا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputPeer"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "الرسالة مرفقة مع الهدية", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "users", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentPremiumGiveaway": {"title": "inputStorePaymentPremiumGiveaway", "description": "تستخدم للدفع مقابل [الهبة، انظر هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فلن يتمكن سوى المشتركين الجدد بدءًا من تاريخ إنشاء الهبة من المشاركة في الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيتم نشر الفائزين بالهدايا بشكل عام وسيتم إدراجهم في رسالة [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md) التي سيتم إرسالها تلقائيًا إلى القناة بمجرد انتهاء الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "القناة/المجموعة الفائقة التي تبدأ الهبة، والتي يجب على المستخدم الانضمام إليها للمشاركة، والتي ستتلقى الهبة [boosts](https://core.telegram.org/api/boost.md); انظر [هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات حول الهدايا المجانية.", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL 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": "يمكن تقييد مجموعة المستخدمين الذين يمكنهم المشاركة في الهبة من خلال تمرير هنا قائمة بيضاء صريحة تصل إلى [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) دولة، محددة كرمز بلد مكون من حرفين ISO 3166-1 alpha-2.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "يمكن أن تحتوي على وصف نصي لجوائز الهدايا الإضافية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف عشوائي لتجنب إعادة إرسال الهبة. راجع [هنا »](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": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "boost_peer", "random_id", "until_date", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsTopup": {"title": "inputStorePaymentStarsTopup", "description": "يستخدم لتعبئة [رصيد Telegram Stars](https://core.telegram.org/api/stars.md) للحساب الجاري.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsTopup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsTopup"]}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "كمية من النجوم إلى اشحن رصيدك", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "spend_purpose_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "يجب أن يتم ملؤها بالنظير الذي بدأت فيه عملية تعبئة الرصيد بسبب انخفاض الأموال (i.e. روبوت لمدفوعات الروبوت، وقناة للوسائط/ردود الفعل المدفوعة، وما إلى ذلك)؛ اترك هذه العلامة غير مأهولة إذا لم يتم بدء تدفق تعبئة الرصيد عند محاولة إنفاق عدد نجوم أكثر مما هو متاح حاليًا في رصيد الحساب.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputPeer"}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsGift": {"title": "inputStorePaymentStarsGift", "description": "تستخدم لإهداء [Telegram Stars](https://core.telegram.org/api/stars.md) لصديق.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGift"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "المستخدم الذي يجب إهداء النجوم له.", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "عدد النجوم للإهداء", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "stars", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsGiveaway": {"title": "inputStorePaymentStarsGiveaway", "description": "تستخدم للدفع مقابل [هبة النجوم، انظر هنا »](https://core.telegram.org/api/giveaways.md#star-giveaways) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فلن يتمكن سوى المشتركين الجدد بدءًا من تاريخ إنشاء الهبة من المشاركة في الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيتم نشر الفائزين بالهدايا بشكل عام وسيتم إدراجهم في رسالة [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md) التي سيتم إرسالها تلقائيًا إلى القناة بمجرد انتهاء الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "إجمالي عدد نجوم Telegram التي سيتم منحها (سيحصل كل مستخدم على `stars/users` نجمة).", "x-tl-type": "long", "x-telegram-field-docs": true}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "القناة/المجموعة الفائقة التي تبدأ الهبة، والتي يجب على المستخدم الانضمام إليها للمشاركة، والتي ستتلقى الهبة [boosts](https://core.telegram.org/api/boost.md); انظر [هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات حول الهدايا المجانية.", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL 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": "يمكن تقييد مجموعة المستخدمين الذين يمكنهم المشاركة في الهبة من خلال تمرير هنا قائمة بيضاء صريحة تصل إلى [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) دولة، محددة كرمز بلد مكون من حرفين ISO 3166-1 alpha-2.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "يمكن أن تحتوي على وصف نصي لجوائز الهدايا الإضافية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف عشوائي لتجنب إعادة إرسال الهبة. راجع [هنا »](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": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الفائزين.", "x-telegram-field-docs": true}}, "required": ["_", "stars", "boost_peer", "random_id", "until_date", "currency", "amount", "users"], "additionalProperties": false}, "inputStorePaymentAuthCode": {"title": "inputStorePaymentAuthCode", "description": "يشير إلى الدفع مقابل رمز تسجيل الدخول.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentAuthCode"]}, "restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "قم بتعيين هذه العلامة لاستعادة عملية شراء تم إجراؤها مسبقًا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "رقم الهاتف.", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "`phone_code_hash` تم رده بواسطة [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md).", "x-telegram-field-docs": true}, "premium_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المدة بالأيام لاشتراك [Telegram Premium](https://core.telegram.org/api/premium.md) الممنوح من خلال عملية الشراء هذه، كما هو موضح في [auth.sentCodePaymentRequired](https://core.telegram.org/constructor/auth.sentCodePaymentRequired.md).`premium_days`.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر المنتج بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مضاعف). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "phone_code_hash", "premium_days", "currency", "amount"], "additionalProperties": false}, "paymentFormMethod": {"title": "paymentFormMethod", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentFormMethod"]}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url", "title"], "additionalProperties": false}, "emojiStatusEmpty": {"title": "emojiStatusEmpty", "description": "لم يتم تعيين حالة الرموز التعبيرية", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "emojiStatus": {"title": "emojiStatus", "description": "[حالة الرموز التعبيرية](https://core.telegram.org/api/emoji-status.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatus"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف مستند الرموز التعبيرية المخصص](https://core.telegram.org/api/custom-emoji.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا تم ضبطها، فستكون حالة الرموز التعبيرية نشطة حتى انتهاء الوقت المحدد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "document_id"], "additionalProperties": false}, "emojiStatusCollectible": {"title": "emojiStatusCollectible", "description": "هدية مملوكة أو [مستضافة] ](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) كحالة تعبيرية.\n\n**لا يمكن** التمرير إلى [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md)، يجب تحويله إلى [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md) أولاً قبل تمريره إلى تلك الطريقة.", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المقتنيات (من [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`id`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف [الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md) التي تمثل الحالة.", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم المقتنية.", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "المعرف الفريد للمقتنيات الذي يمكن استخدامه لإنشاء [رابط هدية قابلة للتحصيل »](https://core.telegram.org/api/links.md#collectible-gift-link) للمقتنيات الحالية، أو لجلب مزيد من المعلومات حول المقتنيات باستخدام [payments.getUniqueStarGift](https://core.telegram.org/method/payments.getUniqueStarGift.md).", "x-telegram-field-docs": true}, "pattern_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف النمط الذي سيتم تطبيقه على خلفية الملف الشخصي، المرتبط بـ [starGiftAttributePattern](https://core.telegram.org/constructor/starGiftAttributePattern.md) من الهدية الموجودة في `slug`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون وسط خلفية الملف الشخصي بتنسيق RGB24، من [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md) الخاصة بالهدية.", "x-telegram-field-docs": true}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون حواف خلفية الملف الشخصي بتنسيق RGB24، من [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md) الخاصة بالهدية.", "x-telegram-field-docs": true}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون `pattern_document_id` مطبق على خلفية الملف الشخصي بتنسيق RGB24، من [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md)] الخاصة بالهدية.", "x-telegram-field-docs": true}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون النص الموجود على خلفية الملف الشخصي بتنسيق RGB24، من [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md) الخاصة بالهدية.", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا تم ضبطها، فستكون حالة الرموز التعبيرية نشطة حتى انتهاء الوقت المحدد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id", "document_id", "title", "slug", "pattern_document_id", "center_color", "edge_color", "pattern_color", "text_color"], "additionalProperties": false}, "inputEmojiStatusCollectible": {"title": "inputEmojiStatusCollectible", "description": "هدية تحصيل مملوكة أو مستضافة »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) كحالة الرموز التعبيرية: لا يمكن استخدامها إلا في [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md)، ولا يتم إعادتها أبدًا بواسطة API.\n\nلاحظ أنه بمجرد التعيين، سيتم إرجاع الحالة إلى المستخدمين كمنشئ [emojiStatusCollectible](https://core.telegram.org/constructor/emojiStatusCollectible.md)، بدلاً من ذلك (والتي **لا يمكن** تمريرها إلى [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md)، ويجب تحويلها إلى [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md) أولاً).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEmojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEmojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المقتنيات (من [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`id`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إذا تم ضبطها، فستكون حالة الرموز التعبيرية نشطة حتى انتهاء الوقت المحدد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id"], "additionalProperties": false}, "account.emojiStatusesNotModified": {"title": "account.emojiStatusesNotModified", "description": "القائمة الموجودة على جانب الخادم لـ [حالات الرموز التعبيرية](https://core.telegram.org/api/emoji-status.md) لم تتغير", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatusesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatusesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.emojiStatuses": {"title": "account.emojiStatuses", "description": "قائمة [حالات الرموز التعبيرية](https://core.telegram.org/api/emoji-status.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatuses"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "statuses": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}, "x-tl-type": "Vector<EmojiStatus>", "description": "[حالات الرموز التعبيرية](https://core.telegram.org/api/emoji-status.md)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "statuses"], "additionalProperties": false}, "reactionEmpty": {"title": "reactionEmpty", "description": "لا رد فعل", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "reactionEmoji": {"title": "reactionEmoji", "description": "رد فعل عادي لرسالة الرموز التعبيرية", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmoji"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "reactionCustomEmoji": {"title": "reactionCustomEmoji", "description": "[رموز تعبيرية مخصصة](https://core.telegram.org/api/custom-emoji.md) رد فعل الرسالة", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionCustomEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionCustomEmoji"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف مستند الرموز التعبيرية المخصص](https://core.telegram.org/api/custom-emoji.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "reactionPaid": {"title": "reactionPaid", "description": "يمثل [رد فعل Telegram Star المدفوع »](https://core.telegram.org/api/reactions.md#paid-reactions).", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionPaid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionPaid"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsNone": {"title": "chatReactionsNone", "description": "لا يسمح بأي ردود فعل", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsNone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsNone"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsAll": {"title": "chatReactionsAll", "description": "يُسمح بجميع التفاعلات أو جميع التفاعلات غير المخصصة", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsAll"]}, "allow_custom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان سيتم السماح بردود الفعل المخصصة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "chatReactionsSome": {"title": "chatReactionsSome", "description": "بعض ردود الفعل مسموح بها", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsSome"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsSome"]}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL 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", "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", "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`; وإلا فسيتم ترتيب المواضيع حسب تاريخ آخر رسالة، لذا قم بتقسيم الصفحات حسب `date` من [الرسالة](https://core.telegram.org/type/Message.md) المشار إليها بواسطة [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "top_icons": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.1?Vector<long>"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد المواضيع المطابقة للاستعلام؛ قد يكون أكثر من المواضيع الواردة في `topics`، وفي هذه الحالة مطلوب [ترقيم الصفحات](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "مواضيع المنتدى", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "الرسائل ذات الصلة (تحتوي على الرسائل التي ذكرها [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message`).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات ذات الصلة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "تحتوي على معلومات حول القيمة الافتراضية لإعداد مدة البقاء، المطبقة على جميع الدردشات الجديدة.", "externalDocs": {"url": "https://core.telegram.org/constructor/defaultHistoryTTL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["defaultHistoryTTL"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يتم تطبيق إعداد مدة البقاء على جميع الدردشات الجديدة.", "x-telegram-field-docs": true}}, "required": ["_", "period"], "additionalProperties": false}, "exportedContactToken": {"title": "exportedContactToken", "description": "يصف [رابط الملف الشخصي المؤقت](https://core.telegram.org/api/links.md#temporary-profile-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedContactToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedContactToken"]}, "url": {"type": "string", "x-tl-type": "string", "description": "[رابط الملف الشخصي المؤقت](https://core.telegram.org/api/links.md#temporary-profile-links).", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ انتهاء صلاحيتها", "x-telegram-field-docs": true}}, "required": ["_", "url", "expires"], "additionalProperties": false}, "requestPeerTypeUser": {"title": "requestPeerTypeUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser"]}, "bot": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "premium": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeChat": {"title": "requestPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeChat"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bot_participant": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "forum": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.4?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeBroadcast": {"title": "requestPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeBroadcast"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeCreateBot": {"title": "requestPeerTypeCreateBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeCreateBot"]}, "bot_managed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "suggested_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "suggested_username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_"], "additionalProperties": false}, "emojiListNotModified": {"title": "emojiListNotModified", "description": "قائمة [الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md) لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "emojiList": {"title": "emojiList", "description": "يمثل قائمة [الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiList"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "document_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "معرفات الرموز التعبيرية المخصصة", "x-telegram-field-docs": true}}, "required": ["_", "hash", "document_id"], "additionalProperties": false}, "emojiGroup": {"title": "emojiGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroup"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupGreeting": {"title": "emojiGroupGreeting", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupGreeting"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupPremium": {"title": "emojiGroupPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupPremium"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "icon_emoji_id"], "additionalProperties": false}, "messages.emojiGroupsNotModified": {"title": "messages.emojiGroupsNotModified", "description": "قائمة [فئات الرموز التعبيرية](https://core.telegram.org/api/emoji-categories.md) لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroupsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroupsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGroups": {"title": "messages.emojiGroups", "description": "يمثل قائمة [فئات الرموز التعبيرية](https://core.telegram.org/api/emoji-categories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroups"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "groups": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiGroup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiGroup", "emojiGroupGreeting", "emojiGroupPremium"]}}, "description": "Тип TL: EmojiGroup."}, "x-tl-type": "Vector<EmojiGroup>", "description": "قائمة [فئات الرموز التعبيرية](https://core.telegram.org/api/emoji-categories.md).", "x-telegram-field-docs": true}}, "required": ["_", "hash", "groups"], "additionalProperties": false}, "textWithEntities": {"title": "textWithEntities", "description": "نص منمق مع [كيانات الرسالة](https://core.telegram.org/api/entities.md)\n\n<!-- كتل المخطط -->\n#### [مخطط شامل](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/textWithEntities"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}, "text": {"type": "string", "x-tl-type": "string", "description": "نص", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL 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": "نص + [الكيانات](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": "إعدادات الحفظ التلقائي للوسائط الافتراضية لـ [channels](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": "يستخدم لجلب معلومات حول [رابط مباشر Mini App](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": "[رابط مباشر Mini App](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": "يستخدم لجلب معلومات حول [رابط مباشر Mini App](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": "معرف الروبوت الذي يمتلك تطبيق bot mini", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "الاسم المختصر، تم الحصول عليه من [رابط عميق للتطبيق المصغر المباشر](https://core.telegram.org/api/links.md#direct-mini-app-links)", "x-telegram-field-docs": true}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "botAppNotModified": {"title": "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": "يحتوي على معلومات حول [رابط مباشر Mini App](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botApp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botApp"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان تطبيق الويب لم يستخدمه المستخدم مطلقًا، ويجب طلب التأكيد من المستخدم قبل فتحه.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يطلب الروبوت الإذن بإرسال رسائل إلى المستخدم: إذا وافق المستخدم، قم بتعيين علامة `write_allowed` عند استدعاء [messages.requestAppWebView](https://core.telegram.org/method/messages.requestAppWebView.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "علامة مهملة، يمكن تجاهلها.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "app": {"type": "object", "x-tl-type": "BotApp", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppNotModified", "botApp"]}}, "description": "معلومات التطبيق بوت", "x-telegram-field-docs": true}}, "required": ["_", "app"], "additionalProperties": false}, "inlineBotWebView": {"title": "inlineBotWebView", "description": "يحدد زر [التطبيق المصغر للوضع المضمن](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps)، الذي يظهر أعلى قائمة نتائج الاستعلام المضمنة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotWebView"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotWebView"]}, "text": {"type": "string", "x-tl-type": "string", "description": "نص الزر", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "تطبيق ويب URL", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "readParticipantDate": {"title": "readParticipantDate", "description": "يحتوي على معلومات حول الوقت الذي قرأ فيه مشارك معين رسالة", "externalDocs": {"url": "https://core.telegram.org/constructor/readParticipantDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["readParticipantDate"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عندما يقرأ المستخدم الرسالة", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "inputChatlistDialogFilter": {"title": "inputChatlistDialogFilter", "description": "معرف المجلد", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatlistDialogFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatlistDialogFilter"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[معرف المجلد](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}}, "required": ["_", "filter_id"], "additionalProperties": false}, "exportedChatlistInvite": {"title": "exportedChatlistInvite", "description": "تم تصدير [رابط عميق لمجلد الدردشة »](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedChatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedChatlistInvite"]}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم الرابط", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "[الرابط العميق لمجلد الدردشة»](https://core.telegram.org/api/links.md#chat-folder-links).", "x-telegram-field-docs": true}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "معرف المجلد", "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": "معرف المجلد المستورد", "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": "قائمة النشطة (أو النشطة والمخفية) [stories](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": "معرفات القصص المثبتة.", "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": "معرف الرسالة للرد عليها.", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يجب أن يحتوي هذا الحقل على معرف الموضوع **فقط** عند الرد على الرسائل في مواضيع المنتدى المختلفة عن الموضوع \"العامة\" (i.e. `reply_to_msg_id` تم تعيينه و `reply_to_msg_id != topicID` و `topicID != 1`).   إذا تم حذف رسالة الرد قبل انتهاء تنفيذ الطريقة، فسيتم استخدام القيمة الموجودة في هذا الحقل لإرسال الرسالة إلى الموضوع الصحيح، بدلاً من الموضوع \"عام\".", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "reply_to_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "يُستخدم للرد على الرسائل المرسلة إلى دردشة أخرى (المحددة هنا)، ولا يمكن استخدامه إلا للمحادثات والرسائل غير `protected`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputPeer"}, "quote_text": {"type": "string", "x-tl-type": "string", "description": "يُستخدم للاقتباس والرد على قسم معين فقط (المحدد هنا) من الرسالة الأصلية. تم تحديد الحد الأقصى لطول UTF-8 لعلامات الاقتباس في مفتاح التكوين [quote_length_max](https://core.telegram.org/api/config.md#quote-length-max).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "quote_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[كيانات الرسالة للنص المنمق](https://core.telegram.org/api/entities.md) من الحقل `quote_text`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<MessageEntity>"}, "quote_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة الرسالة `quote_text` داخل الرسالة الأصلية (في [UTF-16 وحدة كود](https://core.telegram.org/api/entities.md#entity-length)).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "monoforum_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "يجب ضبطه على معرف الموضوع عند الرد على رسالة داخل [موضوع أحادي المنتدى](https://core.telegram.org/api/monoforum.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?InputPeer"}, "todo_item_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يمكن ضبطها للرد على العنصر المحدد في [قائمة المهام »](https://core.telegram.org/api/todo.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "poll_option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "إذا تم التعيين، فسيتم إرسال الرسالة كـ [رد على خيار إجابة استطلاع محدد»](https://core.telegram.org/api/poll.md#replying-to-poll-options)، تحتوي على `option` بايت من الإجابة المطلوبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?bytes"}, "quote_rich": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.8?Vector<RichText>"}}, "required": ["_", "reply_to_msg_id"], "additionalProperties": false}, "inputReplyToStory": {"title": "inputReplyToStory", "description": "الرد على قصة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "مرسل القصة", "x-telegram-field-docs": true}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف القصة للرد عليها.", "x-telegram-field-docs": true}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "inputReplyToMonoForum": {"title": "inputReplyToMonoForum", "description": "يستخدم لإرسال رسائل إلى [موضوع أحادي](https://core.telegram.org/api/monoforum.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToMonoForum"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToMonoForum"]}, "monoforum_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "معرف الموضوع", "x-telegram-field-docs": true}}, "required": ["_", "monoforum_peer_id"], "additionalProperties": false}, "inputReplyToEphemeralMessage": {"title": "inputReplyToEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToEphemeralMessage"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "exportedStoryLink": {"title": "exportedStoryLink", "description": "يمثل [رابط عميق للقصة](https://core.telegram.org/api/stories.md#story-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedStoryLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedStoryLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "ال [الرابط العميق للقصة](https://core.telegram.org/api/stories.md#story-links).", "x-telegram-field-docs": true}}, "required": ["_", "link"], "additionalProperties": false}, "storiesStealthMode": {"title": "storiesStealthMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}, "active_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "cooldown_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "mediaAreaCoordinates": {"title": "mediaAreaCoordinates", "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}, "x": {"type": "number", "format": "double", "x-tl-type": "double"}, "y": {"type": "number", "format": "double", "x-tl-type": "double"}, "w": {"type": "number", "format": "double", "x-tl-type": "double"}, "h": {"type": "number", "format": "double", "x-tl-type": "double"}, "rotation": {"type": "number", "format": "double", "x-tl-type": "double"}, "radius": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.0?double"}}, "required": ["_", "x", "y", "w", "h", "rotation"], "additionalProperties": false}, "mediaAreaVenue": {"title": "mediaAreaVenue", "description": "يمثل علامة موقع مرفقة بـ [story](https://core.telegram.org/api/stories.md)، مع معلومات إضافية عن المكان.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaVenue"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموقع منطقة الوسائط المتوافقة مع ملصق الموقع الموجود أعلى وسائط القصة.", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "إحداثيات المكان", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم المكان", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "العنوان", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "موفر المكان: في الوقت الحالي، يلزم دعم \"Foursquare\" فقط.", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "معرف المكان في قاعدة بيانات المزود", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "نوع المكان في قاعدة بيانات الموفر", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputMediaAreaVenue": {"title": "inputMediaAreaVenue", "description": "يمثل [علامة الموقع](https://core.telegram.org/api/stories.md#media-areas) المرفقة بـ [القصة](https://core.telegram.org/api/stories.md)، مع معلومات إضافية عن المكان.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaAreaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaAreaVenue"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموقع منطقة الوسائط المتوافقة مع ملصق الموقع الموجود أعلى وسائط القصة.", "x-telegram-field-docs": true}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "`query_id` من [messages.botResults](https://core.telegram.org/constructor/messages.botResults.md)، انظر [هنا »](https://core.telegram.org/api/stories.md#media-areas) لمزيد من المعلومات.", "x-tl-type": "long", "x-telegram-field-docs": true}, "result_id": {"type": "string", "x-tl-type": "string", "description": "`id` للنتيجة المختارة، انظر [هنا »](https://core.telegram.org/api/stories.md#media-areas) لمزيد من المعلومات.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "query_id", "result_id"], "additionalProperties": false}, "mediaAreaGeoPoint": {"title": "mediaAreaGeoPoint", "description": "يمثل علامة تحديد الموقع الجغرافي المرفقة بـ [story](https://core.telegram.org/api/stories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaGeoPoint"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموضع منطقة الوسائط المقابلة لملصق الموقع أعلى وسائط القصة.", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "إحداثيات علامة تحديد الموقع الجغرافي.", "x-telegram-field-docs": true}, "address": {"type": "object", "x-tl-type": "GeoPointAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointAddress"]}}, "description": "تمثيل نصي اختياري للعنوان.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?GeoPointAddress"}}, "required": ["_", "coordinates", "geo"], "additionalProperties": false}, "mediaAreaSuggestedReaction": {"title": "mediaAreaSuggestedReaction", "description": "يمثل فقاعة التفاعل.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaSuggestedReaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaSuggestedReaction"]}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت فقاعة التفاعل لها خلفية داكنة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "flipped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كانت فقاعة التفاعل معكوسة (انظر [هنا »](https://core.telegram.org/api/stories.md#reactions) لمزيد من المعلومات).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "إحداثيات منطقة الوسائط المقابلة لزر التفاعل.", "x-telegram-field-docs": true}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "رد الفعل الذي يجب إرساله عند النقر فوق هذه المنطقة.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "reaction"], "additionalProperties": false}, "mediaAreaChannelPost": {"title": "mediaAreaChannelPost", "description": "يمثل مشاركة القناة.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaChannelPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaChannelPost"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموقع منطقة الوسائط المتوافقة مع ملصق الموقع الموجود أعلى وسائط القصة.", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "القناة التي نشرت الرسالة", "x-tl-type": "long", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف رسالة القناة", "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": "معرف رسالة القناة", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "channel", "msg_id"], "additionalProperties": false}, "mediaAreaUrl": {"title": "mediaAreaUrl", "description": "يمثل [URL منطقة إعلامية](https://core.telegram.org/api/stories.md#urls).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaUrl"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموقع منطقة الوسائط المقابلة للزر URL الموجود أعلى وسائط القصة.", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "URL لفتح عند النقر عليه.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "url"], "additionalProperties": false}, "mediaAreaWeather": {"title": "mediaAreaWeather", "description": "يمثل [أداة الطقس »](https://core.telegram.org/api/stories.md#weather).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaWeather"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaWeather"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "حجم وموقع منطقة الوسائط المقابلة لعنصر واجهة المستخدم الموجود أعلى وسائط القصة.", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "يجب تقديم الرموز التعبيرية للطقس على هيئة [رموز تعبيرية متحركة](https://core.telegram.org/api/animated-emojis.md).", "x-telegram-field-docs": true}, "temperature_c": {"type": "number", "format": "double", "x-tl-type": "double", "description": "درجة الحرارة بالدرجة المئوية.", "x-telegram-field-docs": true}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ARGB لون الخلفية.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "emoji", "temperature_c", "color"], "additionalProperties": false}, "mediaAreaStarGift": {"title": "mediaAreaStarGift", "description": "يمثل [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaStarGift"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "إحداثيات منطقة الإعلام.", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "`slug` من [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`، يمكن حلها كـ [محدد هنا »](https://core.telegram.org/api/gifts.md#sharing-and-getting-info-about-a-collectible-gift).", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "slug"], "additionalProperties": false}, "peerStories": {"title": "peerStories", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerStories"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "يمثل صفحة ويب للعرض الفوري.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.webPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.webPage"]}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "صفحة ويب العرض الفوري.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات المذكورة في صفحة الويب.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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 Premium](https://core.telegram.org/api/premium.md).", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "معرف منتج المتجر المرتبط بالخيار، التطبيقات الرسمية فقط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "store_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد المرات التي يجب فيها الدفع لمنتج المتجر", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "users", "months", "currency", "amount"], "additionalProperties": false}, "payments.checkedGiftCode": {"title": "payments.checkedGiftCode", "description": "يحتوي على معلومات حول [رابط رمز هدية Telegram Premium](https://core.telegram.org/api/links.md#premium-giftcode-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkedGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkedGiftCode"]}, "via_giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان رمز الهدايا هذا قد تم إنشاؤه بواسطة [هبة](https://core.telegram.org/api/giveaways.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "النظير الذي أنشأ رمز الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Peer"}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف رسالة الهبة في القناة المحددة في `from_id`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "to_id": {"type": "string", "pattern": "^-?\\d+$", "description": "المستخدم الوجهة للهدية.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ إنشاء رمز الهدية.", "x-telegram-field-docs": true}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "مدة اشتراك Telegram Premium المهدى بالأيام.", "x-telegram-field-docs": true}, "used_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "متى تم استيراد كود الهدية، إذا تم استيراده.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "إذا تم تعيينه، فلن يتمكن المستخدم الحالي من المشاركة في الهبة، لأنه مسؤول في إحدى القنوات (المعرف المحدد في هذه العلامة) التي أنشأت الهبة.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "disallowed_country": {"type": "string", "x-tl-type": "string", "description": "إذا تم التعيين، فلن يتمكن المستخدم الحالي من المشاركة في هذه الهبة، لأن رقم هاتفه من البلد المحدد غير المسموح به (المحدد كرمز بلد مكون من حرفين ISO 3166-1 alpha-2).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}}, "required": ["_", "start_date"], "additionalProperties": false}, "payments.giveawayInfoResults": {"title": "payments.giveawayInfoResults", "description": "انتهت [الهبة](https://core.telegram.org/api/giveaways.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.giveawayInfoResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.giveawayInfoResults"]}, "winner": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "سواء كنا أحد الفائزين بهذه الهبة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان قد تم إلغاء الهبة واسترداد أموالها بالكامل.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ بدء الهبة", "x-telegram-field-docs": true}, "gift_code_slug": {"type": "string", "x-tl-type": "string", "description": "إذا كنا أحد الفائزين بهذه الهبة، فهي تحتوي على [رمز الهدية المميزة](https://core.telegram.org/api/links.md#premium-giftcode-links)، راجع [هنا »](https://core.telegram.org/api/giveaways.md) لمزيد من المعلومات حول تدفق الهبات الكامل.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "stars_prize": {"type": "string", "pattern": "^-?\\d+$", "description": "إذا كنا أحد الفائزين بهذه [هدية نجم التليجرام](https://core.telegram.org/api/giveaways.md#star-giveaways)، رقم [نجوم التليجرام](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 Premium الذي تم إنشاؤه [رموز الهدايا](https://core.telegram.org/api/giveaways.md) و[الهدايا](https://core.telegram.org/api/giveaways.md)؛ تم إرجاعه فقط إلى مسؤولي القناة/المجموعة الفائقة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "next_level_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد التعزيزات اللازمة للوصول إلى المستوى التالي؛ في حالة الغياب، المستوى التالي غير متاح.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "premium_audience": {"type": "object", "x-tl-type": "StatsPercentValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}}, "description": "يتم إرجاعه فقط إلى مسؤولي القناة/المجموعة الرئيسية: يحتوي على العدد التقريبي للمستخدمين المميزين المشتركين في القناة/المجموعة الرئيسية، المرتبط بإجمالي عدد المشتركين.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?StatsPercentValue"}, "boost_url": {"type": "string", "x-tl-type": "string", "description": "[تعزيز الرابط العميق »](https://core.telegram.org/api/links.md#boost-links) الذي يمكن استخدامه لتعزيز الدردشة.", "x-telegram-field-docs": true}, "prepaid_giveaways": {"type": "array", "items": {"type": "object", "x-tl-type": "PrepaidGiveaway", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["prepaidGiveaway", "prepaidStarsGiveaway"]}}, "description": "Тип TL: 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/stats.md) حول [قصة](https://core.telegram.org/api/stories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.storyStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.storyStats"]}, "views_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "رسم بياني يحتوي على عدد مرات مشاهدة القصة ومشاركاتها", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "رسم بياني شريطي يحتوي على عدد تفاعلات القصة المصنفة حسب \"العاطفة\" (i.e. إيجابية، سلبية، أخرى، إلخ...)", "x-telegram-field-docs": true}}, "required": ["_", "views_graph", "reactions_by_emotion_graph"], "additionalProperties": false}, "publicForwardMessage": {"title": "publicForwardMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "publicForwardStory": {"title": "publicForwardStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "[معرف لوحة الألوان، انظر هنا »](https://core.telegram.org/api/colors.md) لمزيد من المعلومات؛ إذا لم يتم تعيينه، فيجب استخدام اللوحة الافتراضية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "اختياري [معرف الرموز التعبيرية المخصص](https://core.telegram.org/api/custom-emoji.md) المستخدم لإنشاء النمط.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}}, "required": ["_"], "additionalProperties": false}, "peerColorCollectible": {"title": "peerColorCollectible", "description": "يمثل [لوحة الألوان »](https://core.telegram.org/api/colors.md) المرتبطة بـ [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts)، انظر [هنا »](https://core.telegram.org/api/colors.md#collectible-gift-palettes) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/peerColorCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerColorCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف [الهدية المجمعة »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-tl-type": "long", "x-telegram-field-docs": true}, "gift_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الرموز التعبيرية المخصصة »](https://core.telegram.org/api/custom-emoji.md) للهدية القابلة للتحصيل: يجب عرض نسخة واحدة من هذه الرموز التعبيرية المخصصة كما هي (بدون إعادة تلوينها، على عكس `background_emoji_id`) في الزاوية العلوية اليمنى من اللوحة.", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الرموز التعبيرية المخصص »](https://core.telegram.org/api/custom-emoji.md) يُستخدم لإنشاء النمط.", "x-tl-type": "long", "x-telegram-field-docs": true}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون التمييز بتنسيق RGB24، يُستخدم لخلفيات الرد واسم المستخدم في الرسائل.", "x-telegram-field-docs": true}, "colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1-3 RGB24 الألوان المستخدمة في شريط الرد.", "x-telegram-field-docs": true}, "dark_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "لون التمييز بتنسيق RGB24، يُستخدم لخلفيات الرد واسم المستخدم في الرسائل في الوضع الداكن (الرجوع إلى `accent_color` في حالة الغياب).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "dark_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1-3 RGB24 لون لاستخدامه في شريط الرد في الوضع الداكن (الرجوع إلى `colors` في حالة الغياب).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<int>"}}, "required": ["_", "collectible_id", "gift_emoji_id", "background_emoji_id", "accent_color", "colors"], "additionalProperties": false}, "inputPeerColorCollectible": {"title": "inputPeerColorCollectible", "description": "يمثل [لوحة الألوان »](https://core.telegram.org/api/colors.md) المرتبطة بـ [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts)، انظر [هنا »](https://core.telegram.org/api/colors.md#collectible-gift-palettes) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerColorCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerColorCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف [الهدية المجمعة »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "collectible_id"], "additionalProperties": false}, "help.peerColorSet": {"title": "help.peerColorSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorSet"]}, "colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "colors"], "additionalProperties": false}, "help.peerColorProfileSet": {"title": "help.peerColorProfileSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorProfileSet"]}, "palette_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "bg_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "story_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "palette_colors", "bg_colors", "story_colors"], "additionalProperties": false}, "help.peerColorOption": {"title": "help.peerColorOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorOption"]}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "color_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "colors": {"type": "object", "x-tl-type": "help.PeerColorSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorSet", "help.peerColorProfileSet"]}}, "description": "Тип TL: help.PeerColorSet.", "x-tl-flag": "flags.1?help.PeerColorSet"}, "dark_colors": {"type": "object", "x-tl-type": "help.PeerColorSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorSet", "help.peerColorProfileSet"]}}, "description": "Тип TL: help.PeerColorSet.", "x-tl-flag": "flags.2?help.PeerColorSet"}, "channel_min_level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "group_min_level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "color_id"], "additionalProperties": false}, "help.peerColorsNotModified": {"title": "help.peerColorsNotModified", "description": "قائمة لوحات الألوان لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.peerColorsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.peerColors": {"title": "help.peerColors", "description": "يحتوي على معلومات حول [لوحات الألوان المتعددة »](https://core.telegram.org/api/colors.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/help.peerColors"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColors"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "colors": {"type": "array", "items": {"type": "object", "x-tl-type": "help.PeerColorOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorOption"]}}, "description": "Тип TL: help.PeerColorOption."}, "x-tl-type": "Vector<help.PeerColorOption>", "description": "صالحة للاستعمال [لوحات الألوان](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true}}, "required": ["_", "hash", "colors"], "additionalProperties": false}, "storyReaction": {"title": "storyReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReaction"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "الرسائل القصيرة المرسلة شهريا", "x-telegram-field-docs": true}}, "required": ["_", "terms_url", "monthly_sent_sms"], "additionalProperties": false}, "smsjobs.status": {"title": "smsjobs.status", "description": "الحالة", "externalDocs": {"url": "https://core.telegram.org/constructor/smsjobs.status"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsjobs.status"]}, "allow_international": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "السماح بالأرقام الدولية", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "recent_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "أرسلت مؤخرا", "x-telegram-field-docs": true}, "recent_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "منذ", "x-telegram-field-docs": true}, "recent_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المتبقي", "x-telegram-field-docs": true}, "total_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي المرسلة", "x-telegram-field-docs": true}, "total_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المجموع منذ ذلك الحين", "x-telegram-field-docs": true}, "last_gift_slug": {"type": "string", "x-tl-type": "string", "description": "آخر هدية الرابط العميق", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "terms_url": {"type": "string", "x-tl-type": "string", "description": "شروط الخدمة URL", "x-telegram-field-docs": true}}, "required": ["_", "recent_sent", "recent_since", "recent_remains", "total_sent", "total_since", "terms_url"], "additionalProperties": false}, "smsJob": {"title": "smsJob", "description": "معلومات حول وظيفة SMS.", "externalDocs": {"url": "https://core.telegram.org/constructor/smsJob"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsJob"]}, "job_id": {"type": "string", "x-tl-type": "string", "description": "معرف الوظيفة", "x-telegram-field-docs": true}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "رقم هاتف الوجهة", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "نص", "x-telegram-field-docs": true}}, "required": ["_", "job_id", "phone_number", "text"], "additionalProperties": false}, "businessWeeklyOpen": {"title": "businessWeeklyOpen", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessWeeklyOpen"]}, "start_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "start_minute", "end_minute"], "additionalProperties": false}, "businessWorkHours": {"title": "businessWorkHours", "description": "يحدد مجموعة من [ساعات عمل Telegram Business](https://core.telegram.org/api/business.md#opening-hours).", "externalDocs": {"url": "https://core.telegram.org/constructor/businessWorkHours"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessWorkHours"]}, "open_now": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "يتم تجاهله إذا تم ضبطه أثناء استدعاء [account.updateBusinessWorkHours](https://core.telegram.org/method/account.updateBusinessWorkHours.md)، يتم إرجاعه فقط بواسطة الخادم في [userFull](https://core.telegram.org/constructor/userFull.md).`business_work_hours`، للإشارة إلى ما إذا كان العمل مفتوحًا حاليًا وفقًا للوقت الحالي والقيم الموجودة في `weekly_open` و`timezone`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "timezone_id": {"type": "string", "x-tl-type": "string", "description": "تم إرجاع معرف إحدى المناطق الزمنية بواسطة [help.getTimezonesList](https://core.telegram.org/method/help.getTimezonesList.md).     يحتوي معرف المنطقة الزمنية على [timezone](https://core.telegram.org/constructor/timezone.md).`id`، وهو اسم محلي يمكن قراءته بواسطة الإنسان للمنطقة الزمنية ويتوفر في [timezone](https://core.telegram.org/constructor/timezone.md).`name` ويحتوي الحقل [timezone](https://core.telegram.org/constructor/timezone.md).`utc_offset` على الإزاحة UTC بالثواني، والتي قد يتم عرضها بتنسيق 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": "قائمة الفواصل الزمنية (بحد أقصى 28) ممثلة بـ [businessWeeklyOpen »](https://core.telegram.org/constructor/businessWeeklyOpen.md)، تشير إلى ساعات عمل أعمالهم.", "x-telegram-field-docs": true}}, "required": ["_", "timezone_id", "weekly_open"], "additionalProperties": false}, "businessLocation": {"title": "businessLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address"], "additionalProperties": false}, "inputBusinessRecipients": {"title": "inputBusinessRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL 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 Business](https://core.telegram.org/api/business.md#greeting-messages)، التي يتم إرسالها تلقائيًا إلى المستخدمين الجدد الذين يكتبون إلينا بشكل خاص لأول مرة، أو بعد فترة معينة من عدم النشاط.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessGreetingMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف [اختصار الرد السريع، الذي يحتوي على رسائل الترحيب المراد إرسالها، انظر هنا » لمزيد من المعلومات](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-telegram-field-docs": true}, "recipients": {"type": "object", "x-tl-type": "InputBusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}}, "description": "المستلمون المسموح لهم برسائل الترحيب.", "x-telegram-field-docs": true}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الأيام التي سيتم بعدها اعتبار الدردشة الخاصة غير نشطة؛ حاليًا، يجب أن يكون واحدًا من 7 أو 14 أو 21 أو 28.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "businessGreetingMessage": {"title": "businessGreetingMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "inputBusinessAwayMessage": {"title": "inputBusinessAwayMessage", "description": "يصف [رسالة Telegram Business بعيدًا](https://core.telegram.org/api/business.md#away-messages)، يتم إرسالها تلقائيًا إلى المستخدمين الذين يكتبون إلينا عندما نكون غير متصلين بالإنترنت، أو خلال ساعات الإغلاق، أو أثناء وجودنا في إجازة، أو في فترة زمنية مخصصة أخرى عندما لا نتمكن من الرد على المستخدم على الفور.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessAwayMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessAwayMessage"]}, "offline_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم ضبطه، فلن يتم إرسال الرسائل إذا كان الحساب متصلاً بالإنترنت خلال آخر 10 دقائق.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف [اختصار الرد السريع، الذي يحتوي على الرسائل البعيدة المراد إرسالها، انظر هنا » لمزيد من المعلومات](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-telegram-field-docs": true}, "schedule": {"type": "object", "x-tl-type": "BusinessAwayMessageSchedule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways", "businessAwayMessageScheduleOutsideWorkHours", "businessAwayMessageScheduleCustom"]}}, "description": "يحدد متى يجب إرسال الرسائل البعيدة.", "x-telegram-field-docs": true}, "recipients": {"type": "object", "x-tl-type": "InputBusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}}, "description": "المستلمون المسموح لهم بالرسائل البعيدة.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "businessAwayMessage": {"title": "businessAwayMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessage"]}, "offline_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "schedule": {"type": "object", "x-tl-type": "BusinessAwayMessageSchedule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways", "businessAwayMessageScheduleOutsideWorkHours", "businessAwayMessageScheduleCustom"]}}, "description": "Тип TL: BusinessAwayMessageSchedule."}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "timezone": {"title": "timezone", "type": "object", "properties": {"_": {"type": "string", "enum": ["timezone"]}, "id": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "utc_offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "name", "utc_offset"], "additionalProperties": false}, "help.timezonesListNotModified": {"title": "help.timezonesListNotModified", "description": "قائمة المناطق الزمنية لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.timezonesList": {"title": "help.timezonesList", "description": "معلومات المنطقة الزمنية التي يمكن استخدامها في أي مكان آخر في API، مثل ضبط [ساعات عمل Telegram Business »](https://core.telegram.org/api/business.md#opening-hours).", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesList"]}, "timezones": {"type": "array", "items": {"type": "object", "x-tl-type": "Timezone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["timezone"]}}, "description": "Тип TL: Timezone."}, "x-tl-type": "Vector<Timezone>", "description": "المناطق الزمنية", "x-telegram-field-docs": true}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}}, "required": ["_", "timezones", "hash"], "additionalProperties": false}, "quickReply": {"title": "quickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["quickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "shortcut": {"type": "string", "x-tl-type": "string"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "shortcut", "top_message", "count"], "additionalProperties": false}, "inputQuickReplyShortcut": {"title": "inputQuickReplyShortcut", "description": "تحديد [اختصار الرد السريع](https://core.telegram.org/api/business.md#quick-reply-shortcuts) بالاسم.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputQuickReplyShortcut"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputQuickReplyShortcut"]}, "shortcut": {"type": "string", "x-tl-type": "string", "description": "اسم الاختصار.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut"], "additionalProperties": false}, "inputQuickReplyShortcutId": {"title": "inputQuickReplyShortcutId", "description": "تحديد [اختصار الرد السريع](https://core.telegram.org/api/business.md#quick-reply-shortcuts) بواسطة المعرف الرقمي الخاص به.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputQuickReplyShortcutId"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputQuickReplyShortcutId"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الاختصار.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id"], "additionalProperties": false}, "messages.quickReplies": {"title": "messages.quickReplies", "description": "معلومات حول [اختصارات الرد السريع »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.quickReplies"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.quickReplies"]}, "quick_replies": {"type": "array", "items": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}, "x-tl-type": "Vector<QuickReply>", "description": "اختصارات الرد السريع.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "الرسائل المذكورة في `quick_replies`.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الأحاديث المذكورة", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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يستخدم أيضًا لدعوة المستخدمين لإهداء [اشتراكات Telegram Premium »](https://core.telegram.org/api/premium.md#gifting-telegram-premium) لمستخدمين آخرين لديهم أعياد ميلاد ضمن نطاق زمني +1/-1 يوم، مرتبط باليوم الحالي.", "externalDocs": {"url": "https://core.telegram.org/constructor/birthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["birthday"]}, "day": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يوم الميلاد", "x-telegram-field-docs": true}, "month": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "شهر الميلاد", "x-telegram-field-docs": true}, "year": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "(اختياري) سنة الميلاد.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "day", "month"], "additionalProperties": false}, "botBusinessConnection": {"title": "botBusinessConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["botBusinessConnection"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "connection_id": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}}, "description": "Тип TL: BusinessBotRights.", "x-tl-flag": "flags.2?BusinessBotRights"}}, "required": ["_", "connection_id", "user_id", "dc_id", "date"], "additionalProperties": false}, "inputBusinessIntro": {"title": "inputBusinessIntro", "description": "[مقدمة أعمال برقية »](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": "ثلاثة أحرف ISO 4217 [العملة](https://core.telegram.org/bots/payments.md#supported-currencies) رمز `amount`]", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "اسم العملة المشفرة.", "x-telegram-field-docs": true}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر بأصغر وحدات العملة المشفرة.", "x-tl-type": "long", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "[جزء](https://fragment.com) URL مع مزيد من المعلومات حول المقتنيات", "x-telegram-field-docs": true}}, "required": ["_", "purchase_date", "currency", "amount", "crypto_currency", "crypto_amount", "url"], "additionalProperties": false}, "inputBusinessBotRecipients": {"title": "inputBusinessBotRecipients", "description": "يحدد الدردشات الخاصة التي قد يتفاعل معها [روبوت الأعمال المتصل »](https://core.telegram.org/api/bots/connected-business-bots.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessBotRecipients"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessBotRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تحديد جميع الدردشات الخاصة الموجودة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تحديد جميع الدردشات الخاصة الجديدة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تحديد جميع الدردشات الخاصة مع جهات الاتصال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "تحديد كافة الدردشات الخاصة مع غير جهات الاتصال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم التعيين، فسيتم اختيار جميع الدردشات الخاصة *ما عدا* تلك المحددة بواسطة `existing_chats` و`new_chats` و`contacts` و`non_contacts` و`users`.  لاحظ أنه إذا تم تعيين هذه العلامة، فسيتم دمج أي قيم تم تمريرها `exclude_users` ونقلها إلى `users` بواسطة الخادم.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL 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": "اسم الرابط الذي يمكن قراءته بواسطة الإنسان، لتبسيط الإدارة في واجهة المستخدم (مرئي فقط لمنشئ الرابط).", "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": "اسم الرابط الذي يمكن قراءته بواسطة الإنسان، لتبسيط الإدارة في واجهة المستخدم (مرئي فقط لمنشئ الرابط).", "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": "يحتوي على معلومات حول حل واحد [رابط عميق للدردشة التجارية »](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": "إذا كانت خاطئة، فإن [إشعارات الدفع »](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` **، ويجب جلب التحقق من الحقائق يدويًا بواسطة العميل (إذا لم يتم تخزينه مؤقتًا بالفعل باستخدام المفتاح المحدد في `hash`) باستخدام طلبات [messages.getFactCheck](https://core.telegram.org/method/messages.getFactCheck.md) المجمعة، عندما يتم تمرير الرسالة التي تحتوي على التحقق من الحقائق إلى العرض.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "country": {"type": "string", "x-tl-type": "string", "description": "رمز البلد المكون من حرفين ISO 3166-1 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": "عدد نجوم التليجرام.", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "معرف منتج المتجر المرتبط بالخيار، التطبيقات الرسمية فقط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر المنتج بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مضاعف). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "starsTransaction": {"title": "starsTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "gift": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "reaction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "stargift_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "business_transfer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "stargift_resale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "posts_search": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "stargift_prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "stargift_drop_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "phonegroup_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "stargift_auction_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "offer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "id": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "StarsTransactionPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported", "starsTransactionPeerAppStore", "starsTransactionPeerPlayMarket", "starsTransactionPeerPremiumBot", "starsTransactionPeerFragment", "starsTransactionPeer", "starsTransactionPeerAds", "starsTransactionPeerAPI"]}}, "description": "Тип TL: StarsTransactionPeer."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.2?WebDocument"}, "transaction_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "transaction_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "bot_payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.7?bytes"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL 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 التي يجب على المستخدم شراؤها ليتمكن من تمديد الاشتراكات منتهية الصلاحية قريبًا (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": "يحتوي على URL لاستخدامه في [سحب إيرادات Telegram Star](https://core.telegram.org/api/stars.md#withdrawing-revenue).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueWithdrawalUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueWithdrawalUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "يحتوي على URL لاستخدامه في [سحب إيرادات Telegram Star](https://core.telegram.org/api/stars.md#withdrawing-revenue).", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.starsRevenueAdsAccountUrl": {"title": "payments.starsRevenueAdsAccountUrl", "description": "يحتوي على URL يؤدي إلى صفحة حيث سيتمكن المستخدم من وضع إعلانات للقناة/الروبوت، والدفع باستخدام [Telegram Stars](https://core.telegram.org/api/stars.md#paying-for-ads).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueAdsAccountUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueAdsAccountUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL للفتح.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputStarsTransaction": {"title": "inputStarsTransaction", "description": "تستخدم لجلب معلومات حول [معاملة Telegram Star »](https://core.telegram.org/api/stars.md#balance-and-transaction-history).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarsTransaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "إذا تم تعيينها، فإنها تجلب معلومات حول معاملة استرداد الأموال لهذه المعاملة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف المعاملة.", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "starsGiftOption": {"title": "starsGiftOption", "description": "[خيار هدية نجوم التلجرام](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": "عدد نجوم التليجرام.", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "معرف منتج المتجر المرتبط بالخيار، التطبيقات الرسمية فقط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر المنتج بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مضاعف). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "bots.popularAppBots": {"title": "bots.popularAppBots", "description": "شعبية [التطبيقات المصغرة الرئيسية](https://core.telegram.org/api/bots/webapps.md#main-mini-apps)، لاستخدامها في [علامة تبويب التطبيقات للبحث العالمي »](https://core.telegram.org/api/search.md#apps-tab).", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.popularAppBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.popularAppBots"]}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "إزاحة لـ [ترقيم الصفحات](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "يجب على المستخدم دفع `amount` نجمة كل `period` ثانية للحصول على إمكانية الوصول إلى القناة والحفاظ عليها.  فترة الاشتراك الوحيدة المسموح بها حاليًا هي `30*24*60*60`، i.e. سيتم خصم مبلغ النجوم من المستخدم كل شهر.", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر الاشتراك في Telegram Stars.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "period", "amount"], "additionalProperties": false}, "starsSubscription": {"title": "starsSubscription", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsSubscription"]}, "canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_refulfill": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "missing_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "bot_canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "id": {"type": "string", "x-tl-type": "string"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "عدد نجوم التليجرام التي سيتم توزيعها على الفائزين", "x-tl-type": "long", "x-telegram-field-docs": true}, "yearly_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد مرات تعزيز الدردشة لمدة عام واحد إذا تم ملء علامة [inputStorePaymentStarsGiveaway](https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway.md).`boost_peer`", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "معرف منتج المتجر المرتبط بالخيار، التطبيقات الرسمية فقط.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "السعر الإجمالي بأصغر وحدات العملة (عدد صحيح، وليس تعويم/مزدوج). على سبيل المثال، بسعر `US$ 1.45` مرر `amount = 145`. راجع المعلمة exp في [currencies.json](https://core.telegram.org/bots/payments/currencies.json)، فهي تعرض عدد الأرقام بعد العلامة العشرية لكل عملة (2 لغالبية العملات).", "x-tl-type": "long", "x-telegram-field-docs": true}, "winners": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiveawayWinnersOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsGiveawayWinnersOption"]}}, "description": "Тип TL: StarsGiveawayWinnersOption."}, "x-tl-type": "Vector<StarsGiveawayWinnersOption>", "description": "الخيارات المسموح بها لعدد الفائزين بالهدية.", "x-telegram-field-docs": true}}, "required": ["_", "stars", "yearly_boosts", "currency", "amount", "winners"], "additionalProperties": false}, "starsGiveawayWinnersOption": {"title": "starsGiveawayWinnersOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiveawayWinnersOption"]}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "per_user_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "users", "per_user_stars"], "additionalProperties": false}, "starGift": {"title": "starGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGift"]}, "limited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "sold_out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "birthday": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "limited_per_user": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "peer_color_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "auction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "new": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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": "يمثل [رسالة مضمنة معدة ومحفوظة بواسطة الروبوت، ليتم إرسالها إلى المستخدم عبر تطبيق ويب »](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botPreparedInlineMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botPreparedInlineMessage"]}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف الرسالة المحفوظة، ليتم تمريرها إلى الحقل `id` الخاص بـ [web_app_send_prepared_message الحدث »](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)", "x-telegram-field-docs": true}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ انتهاء الرسالة", "x-telegram-field-docs": true}}, "required": ["_", "id", "expire_date"], "additionalProperties": false}, "messages.preparedInlineMessage": {"title": "messages.preparedInlineMessage", "description": "يمثل [رسالة مضمنة مُعدة تم استلامها عبر التطبيق المصغر لروبوت، والتي يمكن إرسالها إلى بعض الدردشات »](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.preparedInlineMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.preparedInlineMessage"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ال `query_id` للانتقال إلى [messages.sendInlineBotResult](https://core.telegram.org/method/messages.sendInlineBotResult.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "result": {"type": "object", "x-tl-type": "BotInlineResult", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineResult", "botInlineMediaResult"]}}, "description": "محتويات الرسالة، ليتم عرضها في المعاينة", "x-telegram-field-docs": true}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "TL 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": "معرف البوت الذي يقدم البرنامج", "x-tl-type": "long", "x-telegram-field-docs": true}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يحصل الشريك التابع على عمولة قدرها [starRefProgram](https://core.telegram.org/constructor/starRefProgram.md).`commission_permille`‰ [Telegram Stars](https://core.telegram.org/api/stars.md) مقابل كل معاملة تطبيق صغير يجريها المستخدمون الذين يقومون بإحالتهم", "x-telegram-field-docs": true}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يحصل الشريك التابع على عمولة مقابل كل معاملة تطبيق صغير يقوم بها المستخدمون الذين يحيلونهم، لمدة `duration_months` أشهر بعد استيراد رابط الإحالة، وبدء تشغيل الروبوت لأول مرة", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "النقطة الزمنية (الطابع الزمني لنظام Unix) التي سيتم فيها إغلاق البرنامج التابع (اختياري، إذا لم يتم تعيينه، فلن تتم جدولة البرنامج التابع ليتم إغلاقه)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "daily_revenue_per_user": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "مقدار الإيرادات اليومية لكل مستخدم في Telegram Stars للروبوت الذي أنشأ البرنامج التابع.  للحصول على الإيرادات التقريبية لكل مستخدم مُحال، اضرب هذه القيمة بـ `commission_permille` واقسمها على `1000`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?StarsAmount"}}, "required": ["_", "bot_id", "commission_permille"], "additionalProperties": false}, "connectedBotStarRef": {"title": "connectedBotStarRef", "type": "object", "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "participants": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "revenue": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "date", "bot_id", "commission_permille", "participants", "revenue"], "additionalProperties": false}, "payments.connectedStarRefBots": {"title": "payments.connectedStarRefBots", "description": "نشط [الانتماءات](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.connectedStarRefBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.connectedStarRefBots"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد الانتماءات النشطة", "x-telegram-field-docs": true}, "connected_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "ConnectedBotStarRef", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}}, "description": "Тип TL: ConnectedBotStarRef."}, "x-tl-type": "Vector<ConnectedBotStarRef>", "description": "الانتماءات", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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/webapps.md) المقترحة مع [البرامج التابعة](https://core.telegram.org/api/bots/referrals.md) المتوفرة", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.suggestedStarRefBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.suggestedStarRefBots"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد النتائج (لترقيم الصفحات)", "x-telegram-field-docs": true}, "suggested_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "StarRefProgram", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}}, "description": "TL 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": "يصف مبلغًا حقيقيًا (i.e.ربما عشريًا) من [Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "العدد الصحيح لنجوم Telegram.", "x-tl-type": "long", "x-telegram-field-docs": true}, "nanos": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "المبلغ العشري لنجوم Telegram، معبرًا عنه بالنجوم النانوية (i.e.1 نانوستار يساوي `1/1_000_000_000` (واحد من المليار) من نجمة Telegram).  قد يكون هذا الحقل سلبيًا أيضًا (النطاق المسموح به هو من `-999_999_999` إلى `999_999_999`).", "x-telegram-field-docs": true}}, "required": ["_", "amount", "nanos"], "additionalProperties": false}, "starsTonAmount": {"title": "starsTonAmount", "description": "يصف كمية الجرام بالنانوجرام (i.e. `1/1_000_000_000` من الجرام).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsTonAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTonAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "الكمية بالنانوجرام.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "amount"], "additionalProperties": false}, "messages.foundStickersNotModified": {"title": "messages.foundStickersNotModified", "description": "لم يتم العثور على ملصقات جديدة للاستعلام المحدد", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickersNotModified"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة لـ [ترقيم الصفحات](https://core.telegram.org/api/offsets.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "messages.foundStickers": {"title": "messages.foundStickers", "description": "تم العثور على ملصقات", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickers"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إزاحة لـ [ترقيم الصفحات](https://core.telegram.org/api/offsets.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[التجزئة المستخدمة للتخزين المؤقت، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 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. الأسعار تفصل بينها شهر واحد تقريبًا)، لاستخدامها بشكل أساسي لقياس الرسم البياني للسعر، ولإظهار نظرة عامة مستقبلية أكثر عمومية لسعر الترقية.", "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": "منشئ [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "الدردشات المذكورة في الحقل `gift`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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": "يمثل معاينة صفحة الويب.", "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": "القيمة الثلاثية: لا يمكن ضبطها أو ضبطها وصوابها أو ضبطها وخطأها.  لا يمكن ضبطها إلا للقنوات التي نملكها: تشير القيمة إلى ما إذا كنا [قمنا بتمكين إشعارات الهدايا](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) مع [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md) مع الهدية.", "x-telegram-field-docs": true}}, "required": ["_", "msg_id"], "additionalProperties": false}, "inputSavedStarGiftChat": {"title": "inputSavedStarGiftChat", "description": "هدية وصلتنا من قناة نملكها.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftChat"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "القناة.", "x-telegram-field-docs": true}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف الهدية، يجب أن يكون `saved_id` لمنشئ [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "saved_id"], "additionalProperties": false}, "inputSavedStarGiftSlug": {"title": "inputSavedStarGiftSlug", "description": "يشير إلى [هدية قابلة للتحصيل تم الحصول عليها من رابط هدية قابلة للتحصيل »](https://core.telegram.org/api/links.md#collectible-gift-link).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "سلج من الرابط.", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "payments.starGiftWithdrawalUrl": {"title": "payments.starGiftWithdrawalUrl", "description": "URL يمكن استخدامه لاستيراد NFT المصدر على الجزء.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftWithdrawalUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftWithdrawalUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL لفتح.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "paidReactionPrivacyDefault": {"title": "paidReactionPrivacyDefault", "description": "يستخدم خصوصية التفاعل الافتراضية، والتي تم ضبطها باستخدام [messages.togglePaidReactionPrivacy](https://core.telegram.org/method/messages.togglePaidReactionPrivacy.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyDefault"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyAnonymous": {"title": "paidReactionPrivacyAnonymous", "description": "إرسال ردود الفعل المدفوعة بشكل مجهول.", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyAnonymous"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyAnonymous"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyPeer": {"title": "paidReactionPrivacyPeer", "description": "أرسل التفاعلات المدفوعة كالنظير المحدد، والتي يتم جلبها باستخدام [channels.getSendAs](https://core.telegram.org/method/channels.getSendAs.md) مع مجموعة العلم `for_paid_reactions`.", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "النظير لإرسال ردود الفعل كما.", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "account.paidMessagesRevenue": {"title": "account.paidMessagesRevenue", "description": "إجمالي عدد [Telegram Stars](https://core.telegram.org/api/stars.md) التي أنفقها المستخدم على إرسال رسائل إلينا إما مباشرة أو عبر قناة، راجع [هنا »](https://core.telegram.org/api/paid-messages.md) لمزيد من المعلومات حول الرسائل المدفوعة.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.paidMessagesRevenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.paidMessagesRevenue"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "المبلغ بـ [النجوم](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "requirementToContactEmpty": {"title": "requirementToContactEmpty", "description": "يمكن الاتصال بهذا المستخدم بحرية.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactEmpty"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPremium": {"title": "requirementToContactPremium", "description": "يطلب منا هذا المستخدم شراء اشتراك [Premium](https://core.telegram.org/api/premium.md) حتى نتمكن من الاتصال به.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPremium"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPaidMessages": {"title": "requirementToContactPaidMessages", "description": "يطلب منا هذا المستخدم دفع المبلغ المحدد من [Telegram Stars](https://core.telegram.org/api/stars.md) لإرسال رسالة إليه، راجع [هنا »](https://core.telegram.org/api/paid-messages.md) للاطلاع على التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPaidMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPaidMessages"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "المبلغ المطلوب من [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "businessBotRights": {"title": "businessBotRights", "description": "[حقوق بوت الأعمال](https://core.telegram.org/api/bots/connected-business-bots.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/businessBotRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}, "reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت إرسال الرسائل وتحريرها في الدردشات الخاصة التي تحتوي على رسائل واردة خلال الـ 24 ساعة الماضية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "read_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت وضع علامة على الرسائل الخاصة الواردة كمقروءة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "delete_sent_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت حذف الرسائل التي يرسلها الروبوت.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "delete_received_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت حذف الرسائل الخاصة المستلمة في الدردشات المُدارة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "edit_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت تعديل الاسم الأول والأخير لحساب الأعمال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "edit_bio": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت تعديل السيرة الذاتية لحساب الأعمال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "edit_profile_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت تعديل صورة الملف الشخصي لحساب الأعمال أم لا.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "edit_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت تعديل اسم المستخدم لحساب الأعمال.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "view_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ما إذا كان بإمكان الروبوت عرض الهدايا ومقدار نجوم Telegram التي يمتلكها حساب الأعمال.", "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 التي يتلقاها حساب الأعمال إلى حسابه الخاص، أو استخدامها لترقية الهدايا ونقلها.", "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).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdModel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdModel"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "يمثل [الملصق](https://core.telegram.org/api/stickers.md) الهدية التي تمت ترقيتها", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "starGiftAttributeIdPattern": {"title": "starGiftAttributeIdPattern", "description": "معرف نمط [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdPattern"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdPattern"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[الملصق](https://core.telegram.org/api/stickers.md) يمثل الرمز", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "starGiftAttributeIdBackdrop": {"title": "starGiftAttributeIdBackdrop", "description": "معرف خلفية [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdBackdrop"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdBackdrop"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف فريد للخلفية.", "x-telegram-field-docs": true}}, "required": ["_", "backdrop_id"], "additionalProperties": false}, "starGiftAttributeCounter": {"title": "starGiftAttributeCounter", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeCounter"]}, "attribute": {"type": "object", "x-tl-type": "StarGiftAttributeId", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdModel", "starGiftAttributeIdPattern", "starGiftAttributeIdBackdrop"]}}, "description": "TL 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": "عنصر من [قائمة المهام »](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/todoItem"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["todoItem"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف العنصر، عدد صحيح موجب (غير صفري) فريد ضمن القائمة الحالية.", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "نص العنصر، أقصى طول يساوي [todo_item_length_max »](https://core.telegram.org/api/config.md#todo-item-length-max).", "x-telegram-field-docs": true}}, "required": ["_", "id", "title"], "additionalProperties": false}, "todoList": {"title": "todoList", "type": "object", "properties": {"_": {"type": "string", "enum": ["todoList"]}, "others_can_append": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "others_can_complete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL 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": "معرف المجموعة.", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "عنوان المجموعة.", "x-telegram-field-docs": true}, "icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "أيقونة اختيارية للمجموعة، مأخوذة من الهدية الأولى في المجموعة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Document"}, "gifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الهدايا في المجموعة.", "x-telegram-field-docs": true}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "الحقل المطلوب استخدامه ** بدلاً من `collection_id`** عند إنشاء التجزئة للانتقال إلى [payments.getStarGiftCollections](https://core.telegram.org/method/payments.getStarGiftCollections.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "collection_id", "title", "gifts_count", "hash"], "additionalProperties": false}, "payments.starGiftCollectionsNotModified": {"title": "payments.starGiftCollectionsNotModified", "description": "قائمة [مجموعات هدايا النجوم »](https://core.telegram.org/api/gifts.md#gift-collections) لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftCollectionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftCollectionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGiftCollections": {"title": "payments.starGiftCollections", "description": "يمثل قائمة [مجموعات هدايا النجوم »](https://core.telegram.org/api/gifts.md#gift-collections).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftCollections"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftCollections"]}, "collections": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftCollection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftCollection"]}}, "description": "TL 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": "معرف الألبوم.", "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": "إذا لم يكن هناك المزيد من فتحات البحث، يحدد الوقت الموحد الذي ستتوفر فيه المزيد من فتحات البحث.", "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": "إذا تم تعيينه، فقد اكتملت عملية البيع الأخيرة على الجزء.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "value_is_average": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "في حالة الضبط، يتم حساب `value` من متوسط قيمة الهدايا المباعة من نفس النوع. خلاف ذلك، فإنه يعتمد على سعر بيع الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "currency": {"type": "string", "x-tl-type": "string", "description": "ثلاثة أحرف ISO 4217 [رمز العملة](https://core.telegram.org/bots/payments.md#supported-currencies) (عملة ورقية محلية تستخدم لتمثيل الأسعار وتقديرات الأسعار في هذا المنشئ).", "x-telegram-field-docs": true}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "القيمة المقدرة للهدية، بأصغر وحدة من العملة المحددة في `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ الشراء الأولي للهدية.", "x-telegram-field-docs": true}, "initial_sale_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر الشراء الأولي بالنجوم.", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "سعر الشراء الأولي بأصغر وحدة من العملة المحددة في `currency` (يتم تحويله تلقائيًا من `initial_sale_stars`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "last_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "آخر تاريخ لإعادة بيع الهدية.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "last_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "آخر سعر لإعادة البيع، بأصغر وحدة من العملة المحددة في `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "floor_price": {"type": "string", "pattern": "^-?\\d+$", "description": "الحد الأدنى الحالي لسعر الهدايا القابلة للتحصيل من نفس النوع، بأصغر وحدة من العملة المحددة في `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "average_price": {"type": "string", "pattern": "^-?\\d+$", "description": "متوسط سعر البيع الحالي للهدايا القابلة للتحصيل من نفس النوع، بأصغر وحدة من العملة المحددة في `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الهدايا من نفس النوع التي يتم إعادة بيعها حاليًا على Telegram.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "fragment_listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد الهدايا من نفس النوع التي يتم إعادة بيعها حاليًا على أجزاء.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fragment_listed_url": {"type": "string", "x-tl-type": "string", "description": "رابط مجزأ لقائمة الهدايا من نفس النوع التي يتم إعادة بيعها حاليًا على جزء.", "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": "يمثل علامة التبويب [stories](https://core.telegram.org/api/stories.md) في صفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabPosts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabPosts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifts": {"title": "profileTabGifts", "description": "يمثل علامة التبويب [الهدايا](https://core.telegram.org/api/gifts.md) في صفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabGifts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMedia": {"title": "profileTabMedia", "description": "يمثل علامة تبويب الوسائط لصفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMedia"]}}, "required": ["_"], "additionalProperties": false}, "profileTabFiles": {"title": "profileTabFiles", "description": "يمثل علامة تبويب الملفات المشتركة لملف التعريف.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabFiles"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMusic": {"title": "profileTabMusic", "description": "يمثل علامة التبويب [الموسيقى](https://core.telegram.org/api/profile.md#music) في صفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMusic"]}}, "required": ["_"], "additionalProperties": false}, "profileTabVoice": {"title": "profileTabVoice", "description": "يمثل علامة تبويب الرسائل الصوتية لصفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabVoice"]}}, "required": ["_"], "additionalProperties": false}, "profileTabLinks": {"title": "profileTabLinks", "description": "يمثل علامة تبويب الروابط المشتركة لصفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabLinks"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifs": {"title": "profileTabGifs", "description": "يمثل علامة تبويب الصور المتحركة لصفحة الملف الشخصي.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabGifs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabGifs"]}}, "required": ["_"], "additionalProperties": false}, "users.savedMusicNotModified": {"title": "users.savedMusicNotModified", "description": "لم تتغير هذه المجموعة الفرعية من الأغاني المثبتة حاليًا في الملف الشخصي للمستخدم، راجع [هنا »](https://core.telegram.org/api/profile.md#music) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/users.savedMusicNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.savedMusicNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد الأغاني في الملف الشخصي للمستخدم.", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "users.savedMusic": {"title": "users.savedMusic", "description": "قائمة الأغاني المثبتة حاليًا في الملف الشخصي للمستخدم، انظر [هنا »](https://core.telegram.org/api/profile.md#music) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/users.savedMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.savedMusic"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي عدد الأغاني (يمكن أن يكون أكبر من `documents` اعتمادًا على `limit` الذي تم تمريره، والحد الأقصى الافتراضي `limit` وفي هذه الحالة يلزم ترقيم الصفحات).", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "أغاني.", "x-telegram-field-docs": true}}, "required": ["_", "count", "documents"], "additionalProperties": false}, "account.savedMusicIdsNotModified": {"title": "account.savedMusicIdsNotModified", "description": "قائمة معرفات الأغاني ([document](https://core.telegram.org/constructor/document.md).`id`s) المثبتة حاليًا في ملفنا الشخصي لم تتغير.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedMusicIdsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedMusicIdsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.savedMusicIds": {"title": "account.savedMusicIds", "description": "قائمة معرفات الأغاني ([document](https://core.telegram.org/constructor/document.md).`id`s) المثبتة حاليًا على ملفنا الشخصي، انظر [هنا »](https://core.telegram.org/api/profile.md#music) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedMusicIds"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedMusicIds"]}, "ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "القائمة الكاملة لـ [الوثيقة](https://core.telegram.org/constructor/document.md).`id`s", "x-telegram-field-docs": true}}, "required": ["_", "ids"], "additionalProperties": false}, "payments.checkCanSendGiftResultOk": {"title": "payments.checkCanSendGiftResultOk", "description": "يمكن إرسال الهدية المحددة.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultOk"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultOk"]}}, "required": ["_"], "additionalProperties": false}, "payments.checkCanSendGiftResultFail": {"title": "payments.checkCanSendGiftResultFail", "description": "لا يمكن إرسال الهدية المحددة بعد للسبب المحدد.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultFail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultFail"]}, "reason": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "سبب عدم إمكانية الإرسال حتى الآن.", "x-telegram-field-docs": true}}, "required": ["_", "reason"], "additionalProperties": false}, "inputChatThemeEmpty": {"title": "inputChatThemeEmpty", "description": "قم بإزالة أي سمة تم تكوينها حاليًا.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatTheme": {"title": "inputChatTheme", "description": "قم بتعيين سمة دردشة تعتمد على الرموز التعبيرية، والتي يتم إرجاعها بواسطة [account.getChatThemes](https://core.telegram.org/method/account.getChatThemes.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatTheme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "الرموز التعبيرية.", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputChatThemeUniqueGift": {"title": "inputChatThemeUniqueGift", "description": "قم بتعيين سمة بناءً على هدية مملوكة أو [مستضافة قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts)، تم إرجاعها بواسطة [account.getUniqueGiftChatThemes](https://core.telegram.org/method/account.getUniqueGiftChatThemes.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeUniqueGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeUniqueGift"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "البزاقة من [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`.", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "starGiftUpgradePrice": {"title": "starGiftUpgradePrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftUpgradePrice"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "date", "upgrade_stars"], "additionalProperties": false}, "groupCallMessage": {"title": "groupCallMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallMessage"]}, "from_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 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": "تبرعت Total Stars للقصة الحية", "x-tl-type": "long", "x-telegram-field-docs": true}, "top_donors": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallDonor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDonor"]}}, "description": "Тип TL: GroupCallDonor."}, "x-tl-type": "Vector<GroupCallDonor>", "description": "كبار المانحين", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: 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)، مضمنة في [user](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)؛ بخلاف ذلك، معرف القصة النشطة القصوى للنظير.", "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": "أعد استدعاء طريقة [payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md) بعد `timeout` ثانية لمواصلة تلقي تحديثات المزاد، راجع [هنا »](https://core.telegram.org/api/auctions.md) لمزيد من المعلومات حول التدفق الكامل.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "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/auctions.md) باستخدام معرف [الهدية القابلة للتحصيل](https://core.telegram.org/api/gifts.md#collectible-gifts)] المرتبطة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarGiftAuction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarGiftAuction"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الهدية القابلة للتحصيل](https://core.telegram.org/api/gifts.md#collectible-gifts)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "gift_id"], "additionalProperties": false}, "inputStarGiftAuctionSlug": {"title": "inputStarGiftAuctionSlug", "description": "يستخدم لجلب [المزادات](https://core.telegram.org/api/auctions.md) باستخدام [الرابط العميق للمزاد »](https://core.telegram.org/api/links.md#auction-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarGiftAuctionSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarGiftAuctionSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[سبيكة الارتباط العميق للمزاد »](https://core.telegram.org/api/links.md#auction-links).", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "passkey": {"title": "passkey", "description": "معلومات يمكن قراءتها بواسطة الإنسان حول مفتاح مرور مرتبط بحساب ما، يتم إرجاعها عند [إنشاء مفتاح مرور»](https://core.telegram.org/api/passkeys.md#creating-a-passkey) أو [إدراج مفاتيح المرور»](https://core.telegram.org/api/passkeys.md#list-passkeys).", "externalDocs": {"url": "https://core.telegram.org/constructor/passkey"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["passkey"]}, "id": {"type": "string", "x-tl-type": "string", "description": "معرف مفتاح مرور فريد، يمكن استخدامه على سبيل المثال في [account.deletePasskey](https://core.telegram.org/method/account.deletePasskey.md).", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "اسم مفتاح مرور يمكن قراءته بواسطة الإنسان", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "تاريخ إنشاء مفتاح المرور", "x-telegram-field-docs": true}, "software_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف [الرموز التعبيرية المخصصة](https://core.telegram.org/api/custom-emoji.md) المستخدمة كأيقونة للبرنامج أو مدير كلمات المرور الذي أنشأ مفتاح المرور", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "last_usage_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "التاريخ الذي تم فيه استخدام مفتاح المرور آخر مرة لتسجيل الدخول", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "id", "name", "date"], "additionalProperties": false}, "account.passkeys": {"title": "account.passkeys", "description": "قائمة [مفاتيح المرور »](https://core.telegram.org/api/passkeys.md#list-passkeys) المرتبطة بالحساب الجاري.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passkeys"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passkeys"]}, "passkeys": {"type": "array", "items": {"type": "object", "x-tl-type": "Passkey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passkey"]}}, "description": "TL 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": "JSON-كائن مشفر يحتوي حقله `publicKey` على كائن [`PublicKeyCredentialCreationOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions).", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "auth.passkeyLoginOptions": {"title": "auth.passkeyLoginOptions", "description": "خيارات تسجيل الدخول بمفتاح المرور، راجع [هنا »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) لمزيد من المعلومات حول التدفق الكامل.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.passkeyLoginOptions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.passkeyLoginOptions"]}, "options": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "JSON-كائن مشفر يحتوي حقله `publicKey` على كائن [`PublicKeyCredentialRequestOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions).", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "inputPasskeyResponseRegister": {"title": "inputPasskeyResponseRegister", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseRegister"]}, "client_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL 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": "`id` حقل [PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential)، تم تمريره كما هو دون فك تشفير base64url عند استخدام التمثيل JSON", "x-telegram-field-docs": true}, "raw_id": {"type": "string", "x-tl-type": "string", "description": "`rawId` حقل [PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential)، تم تمريره كما هو بدون فك تشفير base64url عند استخدام التمثيل JSON", "x-telegram-field-docs": true}, "response": {"type": "object", "x-tl-type": "InputPasskeyResponse", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseRegister", "inputPasskeyResponseLogin"]}}, "description": "التسجيل أو الرد على تسجيل الدخول.", "x-telegram-field-docs": true}}, "required": ["_", "id", "raw_id", "response"], "additionalProperties": false}, "starGiftBackground": {"title": "starGiftBackground", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftBackground"]}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "center_color", "edge_color", "text_color"], "additionalProperties": false}, "starGiftAuctionRound": {"title": "starGiftAuctionRound", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRound"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration"], "additionalProperties": false}, "starGiftAuctionRoundExtendable": {"title": "starGiftAuctionRoundExtendable", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRoundExtendable"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_top": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_window": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration", "extend_top", "extend_window"], "additionalProperties": false}, "payments.starGiftUpgradeAttributes": {"title": "payments.starGiftUpgradeAttributes", "description": "قائمة فقط بالسمات القابلة للتحصيل التي قد تظهر لنوع الهدية بمجرد ترقيتها إلى [هدية قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftUpgradeAttributes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftUpgradeAttributes"]}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "قائمة كاملة بالسمات المحتملة التي يمكن تعيينها عند تحويل الهدايا من النوع المحدد إلى [هدايا قابلة للتحصيل »](https://core.telegram.org/api/gifts.md#collectible-gifts)، بما في ذلك النماذج الحرفية فقط التي تحمل علامة [starGiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md).`crafted`.", "x-telegram-field-docs": true}}, "required": ["_", "attributes"], "additionalProperties": false}, "messages.emojiGameOutcome": {"title": "messages.emojiGameOutcome", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameOutcome"]}, "seed": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "stake_ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "seed", "stake_ton_amount", "ton_amount"], "additionalProperties": false}, "messages.emojiGameUnavailable": {"title": "messages.emojiGameUnavailable", "description": "معلومات عن لعبة النرد.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameUnavailable"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameUnavailable"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGameDiceInfo": {"title": "messages.emojiGameDiceInfo", "description": "معلومات عن لعبة النرد.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameDiceInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameDiceInfo"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "تجزئة اللعبة.", "x-telegram-field-docs": true}, "prev_stake": {"type": "string", "pattern": "^-?\\d+$", "description": "الحصة السابقة.", "x-tl-type": "long", "x-telegram-field-docs": true}, "current_streak": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "الخط الحالي.", "x-telegram-field-docs": true}, "params": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "المعلمات.", "x-telegram-field-docs": true}, "plays_left": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "يلعب اليسار.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "game_hash", "prev_stake", "current_streak", "params"], "additionalProperties": false}, "starGiftAttributeRarity": {"title": "starGiftAttributeRarity", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity"]}, "permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "permille"], "additionalProperties": false}, "starGiftAttributeRarityUncommon": {"title": "starGiftAttributeRarityUncommon", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityUncommon"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityRare": {"title": "starGiftAttributeRarityRare", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityRare"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityEpic": {"title": "starGiftAttributeRarityEpic", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityEpic"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityLegendary": {"title": "starGiftAttributeRarityLegendary", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityLegendary"]}}, "required": ["_"], "additionalProperties": false}, "keyboardButtonStyle": {"title": "keyboardButtonStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}, "bg_primary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bg_danger": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bg_success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}}, "required": ["_"], "additionalProperties": false}, "inputMessageReadMetric": {"title": "inputMessageReadMetric", "description": "قراءة المقياس لعرض رسالة واحدة، مع وصف مدة ظهور الرسالة في إطار عرض الدردشة.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReadMetric"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReadMetric"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "معرف الرسالة", "x-telegram-field-docs": true}, "view_id": {"type": "string", "pattern": "^-?\\d+$", "description": "تم إنشاء معرف عشوائي غير صفري 64 بت لهذا التعرض", "x-tl-type": "long", "x-telegram-field-docs": true}, "time_in_view_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "إجمالي وقت التعرض بالمللي ثانية لما لا يقل عن بكسل واحد من الرسالة، بعد فترة سماح الإدخال البالغة 300 مللي ثانية", "x-telegram-field-docs": true}, "active_time_in_view_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "جزء من `time_in_view_ms` متراكم أثناء نشاط المستخدم", "x-telegram-field-docs": true}, "height_to_viewport_ratio_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`round(max_message_height * 1000 / max_viewport_height)`، قد يتجاوز 1000 عندما تكون الرسالة أطول من إطار العرض", "x-telegram-field-docs": true}, "seen_range_ratio_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`round(max_seen_vertical_range * 1000 / max_message_height)`، مثبت على نطاق 0-1000", "x-telegram-field-docs": true}, "recommendation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "recommendation_rank": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "recommendation_role": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "surface": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "event_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "msg_id", "view_id", "time_in_view_ms", "active_time_in_view_ms", "height_to_viewport_ratio_permille", "seen_range_ratio_permille"], "additionalProperties": false}, "bots.exportedBotToken": {"title": "bots.exportedBotToken", "description": "رمز الروبوت الخاص بـ [روبوت مُدار»](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot)، تم تصديره بواسطة روبوت المدير.", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.exportedBotToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.exportedBotToken"]}, "token": {"type": "string", "x-tl-type": "string", "description": "رمز الروبوت الخاص بالروبوت المُدار", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "bots.requestedButton": {"title": "bots.requestedButton", "description": "يحتوي على معرف الطلب الذي يجب على الروبوت تمريره إلى [Mini App](https://core.telegram.org/api/bots/webapps.md) بعد إعداد زر طلب النظير باستخدام [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md)، راجع [هنا »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps) لمزيد من المعلومات.", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.requestedButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.requestedButton"]}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "description": "معرف طلب التطبيق المصغر، ليتم تمريره بواسطة الروبوت إلى التطبيق المصغر ومن ثم العودة إلى [bots.getRequestedWebViewButton](https://core.telegram.org/method/bots.getRequestedWebViewButton.md) و[messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer.md)", "x-telegram-field-docs": true}}, "required": ["_", "webapp_req_id"], "additionalProperties": false}, "messages.composedMessageWithAI": {"title": "messages.composedMessageWithAI", "description": "يمثل رسالة تم تعديلها بواسطة الذكاء الاصطناعي.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.composedMessageWithAI"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.composedMessageWithAI"]}, "result_text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "الرسالة المعدلة", "x-telegram-field-docs": true}, "diff_text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "إذا **فقط** تم تمكين وضع التدقيق اللغوي ([messages.composeMessageWithAI](https://core.telegram.org/method/messages.composeMessageWithAI.md).`proofread`)، فسيتم ملء هذا الحقل بفارق \"معروض مسبقًا\" بين نص الرسالة القديم والجديد باستخدام **فقط** [الكيانات المختلفة »](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": "تشير إلى [نغمة مؤلف الذكاء الاصطناعي »](https://core.telegram.org/api/ai.md#ai-compose-tones) حسب معرفها وتجزئة الوصول.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف النغمة، كما تم إرجاعه في [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "النغمة [الوصول إلى التجزئة](https://core.telegram.org/api/peers.md#access-hash)، كما تم إرجاعها في [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`access_hash`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputAiComposeToneSlug": {"title": "inputAiComposeToneSlug", "description": "تشير إلى [نغمة مؤلف الذكاء الاصطناعي» ](https://core.telegram.org/api/ai.md#ai-compose-tones) المخصصة بواسطة سبيكة عامة، تُستخدم عند فتح [رابط نغمة تأليف الذكاء الاصطناعي»](https://core.telegram.org/api/links.md#ai-compose-tone-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "سبيكة النغمة العامة، كما تم إرجاعها في [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`slug`", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputAiComposeToneSingleUse": {"title": "inputAiComposeToneSingleUse", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSingleUse"]}, "custom_prompt": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "custom_prompt"], "additionalProperties": false}, "aiComposeTone": {"title": "aiComposeTone", "description": "[نغمة مؤلف الذكاء الاصطناعي »](https://core.telegram.org/api/ai.md#ai-compose-tones)، تُستخدم لإعادة صياغة الرسائل بأسلوب معين باستخدام [ملحن رسائل الذكاء الاصطناعي](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": "سبيكة نغمة فريدة من نوعها، تُستخدم لمشاركة النغمة وتثبيتها عبر [روابط إنشاء نغمة الذكاء الاصطناعي »](https://core.telegram.org/api/links.md#ai-compose-tone-links)", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم نغمة يمكن قراءته بواسطة الإنسان، يصل طوله إلى [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 أحرف", "x-telegram-field-docs": true}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الرموز التعبيرية المخصص](https://core.telegram.org/api/custom-emoji.md) لأيقونة النغمة", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}, "prompt": {"type": "string", "x-tl-type": "string", "description": "المطالبة التي تصف كيفية قيام الذكاء الاصطناعي بإعادة صياغة الرسائل باستخدام هذه النغمة، بما يصل إلى [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 أحرف؛ موجود فقط للنغمات التي أنشأها المستخدم الحالي", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "installs_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "عدد المستخدمين الذين قاموا بتثبيت هذه النغمة", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "author_id": {"type": "string", "pattern": "^-?\\d+$", "description": "معرف المستخدم الذي أنشأ هذه النغمة، إذا تم نشرها بواسطة المؤلف.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "example_english": {"type": "object", "x-tl-type": "AiComposeToneExample", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["aiComposeToneExample"]}}, "description": "مثال يوضح كيفية إعادة صياغة رسالة إنجليزية بهذه النغمة؛ استخدم [aicompose.getToneExample](https://core.telegram.org/method/aicompose.getToneExample.md) لجلب المزيد من الأمثلة.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?AiComposeToneExample"}}, "required": ["_", "id", "access_hash", "slug", "title"], "additionalProperties": false}, "aiComposeToneDefault": {"title": "aiComposeToneDefault", "description": "نغمة ملحن AI مدمجة وافتراضية »](https://core.telegram.org/api/ai.md#ai-compose-tones)، يتم تحديدها بواسطة معرف سلسلة بدلاً من معرف رقمي.", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeToneDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeToneDefault"]}, "tone": {"type": "string", "x-tl-type": "string", "description": "معرف السلسلة للنغمة المدمجة، ليتم تمريرها إلى [inputAiComposeToneDefault](https://core.telegram.org/constructor/inputAiComposeToneDefault.md)", "x-telegram-field-docs": true}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[معرف الرموز التعبيرية المخصص](https://core.telegram.org/api/custom-emoji.md) لأيقونة النغمة", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "اسم النغمة المترجم والمقروء من قبل الإنسان", "x-telegram-field-docs": true}}, "required": ["_", "tone", "emoji_id", "title"], "additionalProperties": false}, "aicompose.tonesNotModified": {"title": "aicompose.tonesNotModified", "description": "قائمة [نغمات الملحن AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) لم تتغير منذ آخر مرة تم جلبها (i.e. تم تمرير `hash` إلى [aicompose.getTones](https://core.telegram.org/method/aicompose.getTones.md) لا تزال صالحة).", "externalDocs": {"url": "https://core.telegram.org/constructor/aicompose.tonesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aicompose.tonesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "aicompose.tones": {"title": "aicompose.tones", "description": "قائمة [نغمات الملحن AI المحفوظة »](https://core.telegram.org/api/ai.md#ai-compose-tones) للمستخدم الحالي.", "externalDocs": {"url": "https://core.telegram.org/constructor/aicompose.tones"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aicompose.tones"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[تجزئة لترقيم الصفحات، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "tones": {"type": "array", "items": {"type": "object", "x-tl-type": "AiComposeTone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["aiComposeTone", "aiComposeToneDefault"]}}, "description": "TL 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": "مثال يوضح كيف تقوم [نغمة مؤلف الذكاء الاصطناعي »](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": "محرر الذكاء الاصطناعي", "communities": "المجتمعات", "ephemeral": "الرسائل المؤقتة", "toncenter": "TON Center", "wallet": "المحفظة", "feed": "آخر التحديثات"}}