mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-18 04:46:49 +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
51
.butcher/methods/getGameHighScores/entity.json
Normal file
51
.butcher/methods/getGameHighScores/entity.json
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Games",
|
||||
"anchor": "games"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "getgamehighscores",
|
||||
"name": "getGameHighScores",
|
||||
"description": "Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects.\nThis method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change.",
|
||||
"html_description": "<p>Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of <a href=\"#gamehighscore\">GameHighScore</a> objects.</p><blockquote>\n<p>This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change.</p>\n</blockquote>",
|
||||
"rst_description": "Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of :class:`aiogram.types.game_high_score.GameHighScore` objects.\n\n This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
"required": true,
|
||||
"description": "Target user id",
|
||||
"html_description": "<td>Target user id</td>",
|
||||
"rst_description": "Target user id\n",
|
||||
"name": "user_id"
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"required": false,
|
||||
"description": "Required if inline_message_id is not specified. Unique identifier for the target chat",
|
||||
"html_description": "<td>Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat</td>",
|
||||
"rst_description": "Required if *inline_message_id* is not specified. Unique identifier for the target chat\n",
|
||||
"name": "chat_id"
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"required": false,
|
||||
"description": "Required if inline_message_id is not specified. Identifier of the sent message",
|
||||
"html_description": "<td>Required if <em>inline_message_id</em> is not specified. Identifier of the sent message</td>",
|
||||
"rst_description": "Required if *inline_message_id* is not specified. Identifier of the sent message\n",
|
||||
"name": "message_id"
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"required": false,
|
||||
"description": "Required if chat_id and message_id are not specified. Identifier of the inline message",
|
||||
"html_description": "<td>Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message</td>",
|
||||
"rst_description": "Required if *chat_id* and *message_id* are not specified. Identifier of the inline message\n",
|
||||
"name": "inline_message_id"
|
||||
}
|
||||
],
|
||||
"category": "methods"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue