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": "inputtextmessagecontent",
"name": "InputTextMessageContent",
"description": "Represents the content of a text message to be sent as the result of an inline query.",
"html_description": "<p>Represents the <a href=\"#inputmessagecontent\">content</a> of a text 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 text message to be sent as the result of an inline query.",
"annotations": [
{
"type": "String",
"description": "Text of the message to be sent, 1-4096 characters",
"html_description": "<td>Text of the message to be sent, 1-4096 characters</td>",
"rst_description": "Text of the message to be sent, 1-4096 characters\n",
"name": "message_text",
"required": true
},
{
"type": "String",
"description": "Mode for parsing entities in the message text. See formatting options for more details.",
"html_description": "<td><em>Optional</em>. Mode for parsing entities in the message text. See <a href=\"#formatting-options\">formatting options</a> for more details.</td>",
"rst_description": "*Optional*. Mode for parsing entities in the message text. See `formatting options <https://core.telegram.org/bots/api#formatting-options>`_ for more details.\n",
"name": "parse_mode",
"required": false
},
{
"type": "Array of MessageEntity",
"description": "List of special entities that appear in message text, which can be specified instead of parse_mode",
"html_description": "<td><em>Optional</em>. List of special entities that appear in message text, which can be specified instead of <em>parse_mode</em></td>",
"rst_description": "*Optional*. List of special entities that appear in message text, which can be specified instead of *parse_mode*\n",
"name": "entities",
"required": false
},
{
"type": "Boolean",
"description": "Disables link previews for links in the sent message",
"html_description": "<td><em>Optional</em>. Disables link previews for links in the sent message</td>",
"rst_description": "*Optional*. Disables link previews for links in the sent message\n",
"name": "disable_web_page_preview",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,6 @@
bases:
- InputMessageContent
annotations:
parse_mode:
value: UNSET