mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 10:26:53 +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
67
.butcher/types/Document/entity.json
Normal file
67
.butcher/types/Document/entity.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "document",
|
||||
"name": "Document",
|
||||
"description": "This object represents a general file (as opposed to photos, voice messages and audio files).",
|
||||
"html_description": "<p>This object represents a general file (as opposed to <a href=\"#photosize\">photos</a>, <a href=\"#voice\">voice messages</a> and <a href=\"#audio\">audio files</a>).</p>",
|
||||
"rst_description": "This object represents a general file (as opposed to `photos <https://core.telegram.org/bots/api#photosize>`_, `voice messages <https://core.telegram.org/bots/api#voice>`_ and `audio files <https://core.telegram.org/bots/api#audio>`_).",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Identifier for this file, which can be used to download or reuse the file",
|
||||
"html_description": "<td>Identifier for this file, which can be used to download or reuse the file</td>",
|
||||
"rst_description": "Identifier for this file, which can be used to download or reuse the file\n",
|
||||
"name": "file_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.",
|
||||
"html_description": "<td>Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.</td>",
|
||||
"rst_description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.\n",
|
||||
"name": "file_unique_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "PhotoSize",
|
||||
"description": "Document thumbnail as defined by sender",
|
||||
"html_description": "<td><em>Optional</em>. Document thumbnail as defined by sender</td>",
|
||||
"rst_description": "*Optional*. Document thumbnail as defined by sender\n",
|
||||
"name": "thumb",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Original filename as defined by sender",
|
||||
"html_description": "<td><em>Optional</em>. Original filename as defined by sender</td>",
|
||||
"rst_description": "*Optional*. Original filename as defined by sender\n",
|
||||
"name": "file_name",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "MIME type of the file as defined by sender",
|
||||
"html_description": "<td><em>Optional</em>. MIME type of the file as defined by sender</td>",
|
||||
"rst_description": "*Optional*. MIME type of the file as defined by sender\n",
|
||||
"name": "mime_type",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.",
|
||||
"html_description": "<td><em>Optional</em>. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.</td>",
|
||||
"rst_description": "*Optional*. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.\n",
|
||||
"name": "file_size",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue