mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +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
75
.butcher/methods/setGameScore/entity.json
Normal file
75
.butcher/methods/setGameScore/entity.json
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Games",
|
||||
"anchor": "games"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "setgamescore",
|
||||
"name": "setGameScore",
|
||||
"description": "Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.",
|
||||
"html_description": "<p>Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the <a href=\"#message\">Message</a> is returned, otherwise <em>True</em> is returned. Returns an error, if the new score is not greater than the user's current score in the chat and <em>force</em> is <em>False</em>.</p>",
|
||||
"rst_description": "Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the :class:`aiogram.types.message.Message` is returned, otherwise :code:`True` is returned. Returns an error, if the new score is not greater than the user's current score in the chat and *force* is :code:`False`.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
"required": true,
|
||||
"description": "User identifier",
|
||||
"html_description": "<td>User identifier</td>",
|
||||
"rst_description": "User identifier\n",
|
||||
"name": "user_id"
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"required": true,
|
||||
"description": "New score, must be non-negative",
|
||||
"html_description": "<td>New score, must be non-negative</td>",
|
||||
"rst_description": "New score, must be non-negative\n",
|
||||
"name": "score"
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"required": false,
|
||||
"description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters",
|
||||
"html_description": "<td>Pass <em>True</em> if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters</td>",
|
||||
"rst_description": "Pass :code:`True` if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters\n",
|
||||
"name": "force"
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"required": false,
|
||||
"description": "Pass True if the game message should not be automatically edited to include the current scoreboard",
|
||||
"html_description": "<td>Pass <em>True</em> if the game message should not be automatically edited to include the current scoreboard</td>",
|
||||
"rst_description": "Pass :code:`True` if the game message should not be automatically edited to include the current scoreboard\n",
|
||||
"name": "disable_edit_message"
|
||||
},
|
||||
{
|
||||
"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