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:
Alex Root Junior 2022-11-21 01:06:55 +02:00 committed by GitHub
parent c7779abc50
commit d034c1ba9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
387 changed files with 32036 additions and 3144 deletions

View 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"
}
}

View file

@ -0,0 +1,2 @@
bases:
- InputMessageContent