mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +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/InlineQuery/entity.json
Normal file
67
.butcher/types/InlineQuery/entity.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Inline mode",
|
||||
"anchor": "inline-mode"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "inlinequery",
|
||||
"name": "InlineQuery",
|
||||
"description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.",
|
||||
"html_description": "<p>This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.</p>",
|
||||
"rst_description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier for this query",
|
||||
"html_description": "<td>Unique identifier for this query</td>",
|
||||
"rst_description": "Unique identifier for this query\n",
|
||||
"name": "id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "User",
|
||||
"description": "Sender",
|
||||
"html_description": "<td>Sender</td>",
|
||||
"rst_description": "Sender\n",
|
||||
"name": "from",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Text of the query (up to 256 characters)",
|
||||
"html_description": "<td>Text of the query (up to 256 characters)</td>",
|
||||
"rst_description": "Text of the query (up to 256 characters)\n",
|
||||
"name": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Offset of the results to be returned, can be controlled by the bot",
|
||||
"html_description": "<td>Offset of the results to be returned, can be controlled by the bot</td>",
|
||||
"rst_description": "Offset of the results to be returned, can be controlled by the bot\n",
|
||||
"name": "offset",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Type of the chat from which the inline query was sent. Can be either 'sender' for a private chat with the inline query sender, 'private', 'group', 'supergroup', or 'channel'. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat",
|
||||
"html_description": "<td><em>Optional</em>. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat</td>",
|
||||
"rst_description": "*Optional*. Type of the chat from which the inline query was sent. Can be either 'sender' for a private chat with the inline query sender, 'private', 'group', 'supergroup', or 'channel'. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat\n",
|
||||
"name": "chat_type",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Location",
|
||||
"description": "Sender location, only for bots that request user location",
|
||||
"html_description": "<td><em>Optional</em>. Sender location, only for bots that request user location</td>",
|
||||
"rst_description": "*Optional*. Sender location, only for bots that request user location\n",
|
||||
"name": "location",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue