mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Adding new code-generator (Butcher) (#1069)
* Re-generate types * Re-generate methods (only attributes) * Added enums * Base init generator * Added butcher configs * Fixed tests, bump butcher * Added changelog * Added enum docs * Added templates for docs index * Re-generate bot class, remove deprecated methods
This commit is contained in:
parent
c7779abc50
commit
d034c1ba9f
387 changed files with 32036 additions and 3144 deletions
59
.butcher/types/ChatJoinRequest/entity.json
Normal file
59
.butcher/types/ChatJoinRequest/entity.json
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "chatjoinrequest",
|
||||
"name": "ChatJoinRequest",
|
||||
"description": "Represents a join request sent to a chat.",
|
||||
"html_description": "<p>Represents a join request sent to a chat.</p>",
|
||||
"rst_description": "Represents a join request sent to a chat.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Chat",
|
||||
"description": "Chat to which the request was sent",
|
||||
"html_description": "<td>Chat to which the request was sent</td>",
|
||||
"rst_description": "Chat to which the request was sent\n",
|
||||
"name": "chat",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "User",
|
||||
"description": "User that sent the join request",
|
||||
"html_description": "<td>User that sent the join request</td>",
|
||||
"rst_description": "User that sent the join request\n",
|
||||
"name": "from",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Date the request was sent in Unix time",
|
||||
"html_description": "<td>Date the request was sent in Unix time</td>",
|
||||
"rst_description": "Date the request was sent in Unix time\n",
|
||||
"name": "date",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Bio of the user.",
|
||||
"html_description": "<td><em>Optional</em>. Bio of the user.</td>",
|
||||
"rst_description": "*Optional*. Bio of the user.\n",
|
||||
"name": "bio",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "ChatInviteLink",
|
||||
"description": "Chat invite link that was used by the user to send the join request",
|
||||
"html_description": "<td><em>Optional</em>. Chat invite link that was used by the user to send the join request</td>",
|
||||
"rst_description": "*Optional*. Chat invite link that was used by the user to send the join request\n",
|
||||
"name": "invite_link",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
5
.butcher/types/ChatJoinRequest/replace.yml
Normal file
5
.butcher/types/ChatJoinRequest/replace.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
annotations:
|
||||
date:
|
||||
parsed_type:
|
||||
type: std
|
||||
name: datetime.datetime
|
||||
Loading…
Add table
Add a link
Reference in a new issue