mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 16:15:51 +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/InputLocationMessageContent/entity.json
Normal file
67
.butcher/types/InputLocationMessageContent/entity.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Inline mode",
|
||||
"anchor": "inline-mode"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "inputlocationmessagecontent",
|
||||
"name": "InputLocationMessageContent",
|
||||
"description": "Represents the content of a location message to be sent as the result of an inline query.",
|
||||
"html_description": "<p>Represents the <a href=\"#inputmessagecontent\">content</a> of a location 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 location message to be sent as the result of an inline query.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Latitude of the location in degrees",
|
||||
"html_description": "<td>Latitude of the location in degrees</td>",
|
||||
"rst_description": "Latitude of the location in degrees\n",
|
||||
"name": "latitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Longitude of the location in degrees",
|
||||
"html_description": "<td>Longitude of the location in degrees</td>",
|
||||
"rst_description": "Longitude of the location in degrees\n",
|
||||
"name": "longitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float number",
|
||||
"description": "The radius of uncertainty for the location, measured in meters; 0-1500",
|
||||
"html_description": "<td><em>Optional</em>. The radius of uncertainty for the location, measured in meters; 0-1500</td>",
|
||||
"rst_description": "*Optional*. The radius of uncertainty for the location, measured in meters; 0-1500\n",
|
||||
"name": "horizontal_accuracy",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Period in seconds for which the location can be updated, should be between 60 and 86400.",
|
||||
"html_description": "<td><em>Optional</em>. Period in seconds for which the location can be updated, should be between 60 and 86400.</td>",
|
||||
"rst_description": "*Optional*. Period in seconds for which the location can be updated, should be between 60 and 86400.\n",
|
||||
"name": "live_period",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.",
|
||||
"html_description": "<td><em>Optional</em>. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.</td>",
|
||||
"rst_description": "*Optional*. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.\n",
|
||||
"name": "heading",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.",
|
||||
"html_description": "<td><em>Optional</em>. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.</td>",
|
||||
"rst_description": "*Optional*. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.\n",
|
||||
"name": "proximity_alert_radius",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
2
.butcher/types/InputLocationMessageContent/replace.yml
Normal file
2
.butcher/types/InputLocationMessageContent/replace.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bases:
|
||||
- InputMessageContent
|
||||
Loading…
Add table
Add a link
Reference in a new issue