Skip to content

Commit

Permalink
deploy: 1dd06c1
Browse files Browse the repository at this point in the history
  • Loading branch information
sys-001 committed Sep 22, 2023
1 parent f2f85d7 commit 63d4d3f
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 33 deletions.
90 changes: 77 additions & 13 deletions schemas/botapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.8.0",
"version": "6.9.0",
"types": [
{
"name": "Update",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": []
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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": [
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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": [
Expand Down Expand Up @@ -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": []
Expand Down Expand Up @@ -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": []
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": [
Expand Down
74 changes: 61 additions & 13 deletions schemas/botapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 6.8.0
version: 6.9.0
types:
-
name: Update
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
-
Expand Down
Loading

0 comments on commit 63d4d3f

Please sign in to comment.