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/Contact/entity.json
Normal file
59
.butcher/types/Contact/entity.json
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "contact",
|
||||
"name": "Contact",
|
||||
"description": "This object represents a phone contact.",
|
||||
"html_description": "<p>This object represents a phone contact.</p>",
|
||||
"rst_description": "This object represents a phone contact.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Contact's phone number",
|
||||
"html_description": "<td>Contact's phone number</td>",
|
||||
"rst_description": "Contact's phone number\n",
|
||||
"name": "phone_number",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Contact's first name",
|
||||
"html_description": "<td>Contact's first name</td>",
|
||||
"rst_description": "Contact's first name\n",
|
||||
"name": "first_name",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Contact's last name",
|
||||
"html_description": "<td><em>Optional</em>. Contact's last name</td>",
|
||||
"rst_description": "*Optional*. Contact's last name\n",
|
||||
"name": "last_name",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.",
|
||||
"html_description": "<td><em>Optional</em>. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.</td>",
|
||||
"rst_description": "*Optional*. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.\n",
|
||||
"name": "user_id",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Additional data about the contact in the form of a vCard",
|
||||
"html_description": "<td><em>Optional</em>. Additional data about the contact in the form of a <a href=\"https://en.wikipedia.org/wiki/VCard\">vCard</a></td>",
|
||||
"rst_description": "*Optional*. Additional data about the contact in the form of a `vCard <https://en.wikipedia.org/wiki/VCard>`_\n",
|
||||
"name": "vcard",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue