mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 10:53: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/Location/entity.json
Normal file
67
.butcher/types/Location/entity.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "location",
|
||||
"name": "Location",
|
||||
"description": "This object represents a point on the map.",
|
||||
"html_description": "<p>This object represents a point on the map.</p>",
|
||||
"rst_description": "This object represents a point on the map.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Longitude as defined by sender",
|
||||
"html_description": "<td>Longitude as defined by sender</td>",
|
||||
"rst_description": "Longitude as defined by sender\n",
|
||||
"name": "longitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Latitude as defined by sender",
|
||||
"html_description": "<td>Latitude as defined by sender</td>",
|
||||
"rst_description": "Latitude as defined by sender\n",
|
||||
"name": "latitude",
|
||||
"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": "Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.",
|
||||
"html_description": "<td><em>Optional</em>. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.</td>",
|
||||
"rst_description": "*Optional*. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.\n",
|
||||
"name": "live_period",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The direction in which user is moving, in degrees; 1-360. For active live locations only.",
|
||||
"html_description": "<td><em>Optional</em>. The direction in which user is moving, in degrees; 1-360. For active live locations only.</td>",
|
||||
"rst_description": "*Optional*. The direction in which user is moving, in degrees; 1-360. For active live locations only.\n",
|
||||
"name": "heading",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.",
|
||||
"html_description": "<td><em>Optional</em>. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.</td>",
|
||||
"rst_description": "*Optional*. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.\n",
|
||||
"name": "proximity_alert_radius",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue