mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 19:00: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
67
.butcher/types/VideoNote/entity.json
Normal file
67
.butcher/types/VideoNote/entity.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "videonote",
|
||||
"name": "VideoNote",
|
||||
"description": "This object represents a video message (available in Telegram apps as of v.4.0).",
|
||||
"html_description": "<p>This object represents a <a href=\"https://telegram.org/blog/video-messages-and-telescope\">video message</a> (available in Telegram apps as of <a href=\"https://telegram.org/blog/video-messages-and-telescope\">v.4.0</a>).</p>",
|
||||
"rst_description": "This object represents a `video message <https://telegram.org/blog/video-messages-and-telescope>`_ (available in Telegram apps as of `v.4.0 <https://telegram.org/blog/video-messages-and-telescope>`_).",
|
||||
"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": "Integer",
|
||||
"description": "Video width and height (diameter of the video message) as defined by sender",
|
||||
"html_description": "<td>Video width and height (diameter of the video message) as defined by sender</td>",
|
||||
"rst_description": "Video width and height (diameter of the video message) as defined by sender\n",
|
||||
"name": "length",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Duration of the video in seconds as defined by sender",
|
||||
"html_description": "<td>Duration of the video in seconds as defined by sender</td>",
|
||||
"rst_description": "Duration of the video in seconds as defined by sender\n",
|
||||
"name": "duration",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "PhotoSize",
|
||||
"description": "Video thumbnail",
|
||||
"html_description": "<td><em>Optional</em>. Video thumbnail</td>",
|
||||
"rst_description": "*Optional*. Video thumbnail\n",
|
||||
"name": "thumb",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "File size in bytes",
|
||||
"html_description": "<td><em>Optional</em>. File size in bytes</td>",
|
||||
"rst_description": "*Optional*. File size in bytes\n",
|
||||
"name": "file_size",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue