mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 10:53:23 +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
51
.butcher/types/InputContactMessageContent/entity.json
Normal file
51
.butcher/types/InputContactMessageContent/entity.json
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Inline mode",
|
||||
"anchor": "inline-mode"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "inputcontactmessagecontent",
|
||||
"name": "InputContactMessageContent",
|
||||
"description": "Represents the content of a contact message to be sent as the result of an inline query.",
|
||||
"html_description": "<p>Represents the <a href=\"#inputmessagecontent\">content</a> of a contact message to be sent as the result of an inline query.</p>",
|
||||
"rst_description": "Represents the `content <https://core.telegram.org/bots/api#inputmessagecontent>`_ of a contact message to be sent as the result of an inline query.",
|
||||
"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": "String",
|
||||
"description": "Additional data about the contact in the form of a vCard, 0-2048 bytes",
|
||||
"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>, 0-2048 bytes</td>",
|
||||
"rst_description": "*Optional*. Additional data about the contact in the form of a `vCard <https://en.wikipedia.org/wiki/VCard>`_, 0-2048 bytes\n",
|
||||
"name": "vcard",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
2
.butcher/types/InputContactMessageContent/replace.yml
Normal file
2
.butcher/types/InputContactMessageContent/replace.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
Loading…
Add table
Add a link
Reference in a new issue