From 63d4d3ff650de071929ff45484eee78c4629633e Mon Sep 17 00:00:00 2001 From: sys-001 Date: Fri, 22 Sep 2023 15:04:53 +0000 Subject: [PATCH] deploy: 1dd06c155b718d12f43fed80686533ab0a92e693 --- schemas/botapi.json | 90 +++++++++++++++++++++++++++++++------ schemas/botapi.yaml | 74 ++++++++++++++++++++++++------ schemas/botapi_openapi.json | 28 +++++++++++- schemas/botapi_openapi.yaml | 20 ++++++++- schemas/botapi_postman.json | 6 +-- 5 files changed, 185 insertions(+), 33 deletions(-) diff --git a/schemas/botapi.json b/schemas/botapi.json index 7869fad..450f933 100644 --- a/schemas/botapi.json +++ b/schemas/botapi.json @@ -1,5 +1,5 @@ { - "version": "6.8.0", + "version": "6.9.0", "types": [ { "name": "Update", @@ -395,7 +395,7 @@ "int" ], "optional": true, - "description": "Optional. Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat." + "description": "Optional. Expiration date of the emoji status of the other party in a private chat in Unix time, if any. Returned only in getChat." }, { "name": "bio", @@ -1026,7 +1026,7 @@ "WriteAccessAllowed" ], "optional": true, - "description": "Optional. Service message: the user allowed the bot added to the attachment menu to write messages" + "description": "Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess" }, { "name": "passport_data", @@ -2224,15 +2224,31 @@ }, { "name": "WriteAccessAllowed", - "description": "This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.", + "description": "This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.", "fields": [ + { + "name": "from_request", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess" + }, { "name": "web_app_name", "types": [ "string" ], "optional": true, - "description": "Optional. Name of the Web App which was launched from a link" + "description": "Optional. Name of the Web App, if the access was granted when the Web App was launched from a link" + }, + { + "name": "from_attachment_menu", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the access was granted when the bot was added to the attachment or side menu" } ], "extended_by": [] @@ -3046,7 +3062,7 @@ "bool" ], "optional": false, - "description": "True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" + "description": "True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" }, { "name": "can_delete_messages", @@ -3102,7 +3118,7 @@ "bool" ], "optional": true, - "description": "Optional. True, if the administrator can post in the channel; channels only" + "description": "Optional. True, if the administrator can post messages in the channel; channels only" }, { "name": "can_edit_messages", @@ -3120,6 +3136,30 @@ "optional": true, "description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only" }, + { + "name": "can_post_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can post stories in the channel; channels only" + }, + { + "name": "can_edit_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can edit stories posted by other users; channels only" + }, + { + "name": "can_delete_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can delete stories posted by other users" + }, { "name": "can_manage_topics", "types": [ @@ -3225,7 +3265,7 @@ "bool" ], "optional": false, - "description": "True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" + "description": "True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" }, { "name": "can_delete_messages", @@ -3281,7 +3321,7 @@ "bool" ], "optional": true, - "description": "Optional. True, if the administrator can post in the channel; channels only" + "description": "Optional. True, if the administrator can post messages in the channel; channels only" }, { "name": "can_edit_messages", @@ -3299,6 +3339,30 @@ "optional": true, "description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only" }, + { + "name": "can_post_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can post stories in the channel; channels only" + }, + { + "name": "can_edit_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can edit stories posted by other users; channels only" + }, + { + "name": "can_delete_stories", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can delete stories posted by other users" + }, { "name": "can_manage_topics", "types": [ @@ -3487,7 +3551,7 @@ "int" ], "optional": false, - "description": "Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever" + "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever" } ], "extended_by": [] @@ -3541,7 +3605,7 @@ "int" ], "optional": false, - "description": "Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever" + "description": "Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever" } ], "extended_by": [] @@ -10388,7 +10452,7 @@ "int" ], "optional": true, - "description": "Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only." + "description": "Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only." }, { "name": "revoke_messages", @@ -10480,7 +10544,7 @@ "int" ], "optional": true, - "description": "Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever" + "description": "Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever" } ], "return_types": [ diff --git a/schemas/botapi.yaml b/schemas/botapi.yaml index d797199..354b509 100644 --- a/schemas/botapi.yaml +++ b/schemas/botapi.yaml @@ -1,4 +1,4 @@ -version: 6.8.0 +version: 6.9.0 types: - name: Update @@ -297,7 +297,7 @@ types: types: - int optional: true - description: 'Optional. Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat.' + description: 'Optional. Expiration date of the emoji status of the other party in a private chat in Unix time, if any. Returned only in getChat.' - name: bio types: @@ -774,7 +774,7 @@ types: types: - WriteAccessAllowed optional: true - description: 'Optional. Service message: the user allowed the bot added to the attachment menu to write messages' + description: 'Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess' - name: passport_data types: @@ -1668,14 +1668,26 @@ types: extended_by: { } - name: WriteAccessAllowed - description: 'This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.' + description: 'This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.' fields: + - + name: from_request + types: + - bool + optional: true + description: 'Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess' - name: web_app_name types: - string optional: true - description: 'Optional. Name of the Web App which was launched from a link' + description: 'Optional. Name of the Web App, if the access was granted when the Web App was launched from a link' + - + name: from_attachment_menu + types: + - bool + optional: true + description: 'Optional. True, if the access was granted when the bot was added to the attachment or side menu' extended_by: { } - name: VideoChatScheduled @@ -2282,7 +2294,7 @@ types: types: - bool optional: false - description: 'True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' + description: 'True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' - name: can_delete_messages types: @@ -2324,7 +2336,7 @@ types: types: - bool optional: true - description: 'Optional. True, if the administrator can post in the channel; channels only' + description: 'Optional. True, if the administrator can post messages in the channel; channels only' - name: can_edit_messages types: @@ -2337,6 +2349,24 @@ types: - bool optional: true description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only' + - + name: can_post_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can post stories in the channel; channels only' + - + name: can_edit_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can edit stories posted by other users; channels only' + - + name: can_delete_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can delete stories posted by other users' - name: can_manage_topics types: @@ -2417,7 +2447,7 @@ types: types: - bool optional: false - description: 'True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' + description: 'True, if the administrator can access the chat event log, chat statistics, boost list in channels, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' - name: can_delete_messages types: @@ -2459,7 +2489,7 @@ types: types: - bool optional: true - description: 'Optional. True, if the administrator can post in the channel; channels only' + description: 'Optional. True, if the administrator can post messages in the channel; channels only' - name: can_edit_messages types: @@ -2472,6 +2502,24 @@ types: - bool optional: true description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only' + - + name: can_post_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can post stories in the channel; channels only' + - + name: can_edit_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can edit stories posted by other users; channels only' + - + name: can_delete_stories + types: + - bool + optional: true + description: 'Optional. True, if the administrator can delete stories posted by other users' - name: can_manage_topics types: @@ -2613,7 +2661,7 @@ types: types: - int optional: false - description: 'Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever' + description: 'Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever' extended_by: { } - name: ChatMemberLeft @@ -2653,7 +2701,7 @@ types: types: - int optional: false - description: 'Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever' + description: 'Date when restrictions will be lifted for this user; Unix time. If 0, then the user is banned forever' extended_by: { } - name: ChatMemberUpdated @@ -7797,7 +7845,7 @@ methods: types: - int optional: true - description: 'Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.' + description: 'Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.' - name: revoke_messages types: @@ -7865,7 +7913,7 @@ methods: types: - int optional: true - description: 'Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever' + description: 'Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever' return_types: - bool - diff --git a/schemas/botapi_openapi.json b/schemas/botapi_openapi.json index 17a25b3..28d97c6 100644 --- a/schemas/botapi_openapi.json +++ b/schemas/botapi_openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Telegram Bot API", "description": "Auto-generated OpenAPI schema by TGScraper.", - "version": "6.8.0" + "version": "6.9.0" }, "servers": [ { @@ -1269,10 +1269,16 @@ "type": "object" }, "WriteAccessAllowed": { - "description": "This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.", + "description": "This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.", "properties": { + "from_request": { + "type": "boolean" + }, "web_app_name": { "type": "string" + }, + "from_attachment_menu": { + "type": "boolean" } }, "type": "object" @@ -1776,6 +1782,15 @@ "can_pin_messages": { "type": "boolean" }, + "can_post_stories": { + "type": "boolean" + }, + "can_edit_stories": { + "type": "boolean" + }, + "can_delete_stories": { + "type": "boolean" + }, "can_manage_topics": { "type": "boolean" } @@ -1886,6 +1901,15 @@ "can_pin_messages": { "type": "boolean" }, + "can_post_stories": { + "type": "boolean" + }, + "can_edit_stories": { + "type": "boolean" + }, + "can_delete_stories": { + "type": "boolean" + }, "can_manage_topics": { "type": "boolean" }, diff --git a/schemas/botapi_openapi.yaml b/schemas/botapi_openapi.yaml index 8a36d3e..4fac27d 100644 --- a/schemas/botapi_openapi.yaml +++ b/schemas/botapi_openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: 'Telegram Bot API' description: 'Auto-generated OpenAPI schema by TGScraper.' - version: 6.8.0 + version: 6.9.0 servers: - url: 'https://api.telegram.org/bot{token}' @@ -864,10 +864,14 @@ components: type: integer type: object WriteAccessAllowed: - description: 'This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.' + description: 'This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.' properties: + from_request: + type: boolean web_app_name: type: string + from_attachment_menu: + type: boolean type: object VideoChatScheduled: description: 'This object represents a service message about a video chat scheduled in the chat.' @@ -1210,6 +1214,12 @@ components: type: boolean can_pin_messages: type: boolean + can_post_stories: + type: boolean + can_edit_stories: + type: boolean + can_delete_stories: + type: boolean can_manage_topics: type: boolean type: object @@ -1287,6 +1297,12 @@ components: type: boolean can_pin_messages: type: boolean + can_post_stories: + type: boolean + can_edit_stories: + type: boolean + can_delete_stories: + type: boolean can_manage_topics: type: boolean custom_title: diff --git a/schemas/botapi_postman.json b/schemas/botapi_postman.json index cdc3bc1..7f627a0 100644 --- a/schemas/botapi_postman.json +++ b/schemas/botapi_postman.json @@ -3,7 +3,7 @@ "name": "Telegram Bot API", "description": "Auto-generated Postman collection by TGScraper.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "version": "6.8.0" + "version": "6.9.0" }, "variable": { "key": "token", @@ -1988,7 +1988,7 @@ { "key": "until_date", "disabled": true, - "description": "Optional. Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.", + "description": "Optional. Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.", "type": "text" }, { @@ -2092,7 +2092,7 @@ { "key": "until_date", "disabled": true, - "description": "Optional. Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever", + "description": "Optional. Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever", "type": "text" } ]