mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed subtypes and union types generation, new enums added (#1213)
* Fixed subtypes and union types generation, new enums added * Added changes description
This commit is contained in:
parent
a7b92bb050
commit
31c11c31e0
115 changed files with 680 additions and 359 deletions
1
.butcher/types/BotCommandScope/subtypes.yml
Normal file
1
.butcher/types/BotCommandScope/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "type"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- BotCommandScope
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
define:
|
||||
- type: "String"
|
||||
description: "The member's status in the chat"
|
||||
html_description: "<td>The member's status in the chat</td>"
|
||||
rst_description: "The member's status in the chat"
|
||||
name: "status"
|
||||
required: true
|
||||
|
||||
clone:
|
||||
- ChatMemberOwner:
|
||||
exclude:
|
||||
- status
|
||||
- ChatMemberAdministrator:
|
||||
exclude:
|
||||
- status
|
||||
- ChatMemberMember:
|
||||
exclude:
|
||||
- status
|
||||
- ChatMemberRestricted:
|
||||
exclude:
|
||||
- status
|
||||
- ChatMemberLeft:
|
||||
exclude:
|
||||
- status
|
||||
- ChatMemberBanned:
|
||||
exclude:
|
||||
- status
|
||||
1
.butcher/types/ChatMember/subtypes.yml
Normal file
1
.butcher/types/ChatMember/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "status"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
annotations:
|
||||
until_date:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- ChatMember
|
||||
annotations:
|
||||
until_date:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -3,32 +3,3 @@ annotations:
|
|||
parsed_type:
|
||||
type: std
|
||||
name: datetime.datetime
|
||||
old_chat_member: &chat-member-type
|
||||
parsed_type:
|
||||
type: union
|
||||
items:
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberOwner
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberAdministrator
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberMember
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberRestricted
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberLeft
|
||||
- type: entity
|
||||
references:
|
||||
category: types
|
||||
name: ChatMemberBanned
|
||||
new_chat_member: *chat-member-type
|
||||
|
|
|
|||
1
.butcher/types/InlineQueryResult/subtypes.yml
Normal file
1
.butcher/types/InlineQueryResult/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "type"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
1
.butcher/types/InputMedia/subtypes.yml
Normal file
1
.butcher/types/InputMedia/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "type"
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InputMedia
|
||||
annotations:
|
||||
media:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InputMedia
|
||||
annotations:
|
||||
media:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InputMedia
|
||||
annotations:
|
||||
media:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InputMedia
|
||||
annotations:
|
||||
media:
|
||||
parsed_type:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
bases:
|
||||
- InputMedia
|
||||
annotations:
|
||||
media:
|
||||
parsed_type:
|
||||
|
|
|
|||
1
.butcher/types/InputMessageContent/subtypes.yml
Normal file
1
.butcher/types/InputMessageContent/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ }
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
|
||||
annotations:
|
||||
parse_mode:
|
||||
value: UNSET_PARSE_MODE
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
1
.butcher/types/MenuButton/subtypes.yml
Normal file
1
.butcher/types/MenuButton/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "type"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- MenuButton
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- MenuButton
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- MenuButton
|
||||
1
.butcher/types/PassportElementError/subtypes.yml
Normal file
1
.butcher/types/PassportElementError/subtypes.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
discriminator: "source"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
bases:
|
||||
- PassportElementError
|
||||
Loading…
Add table
Add a link
Reference in a new issue