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
59
.butcher/types/InlineQueryResultCachedSticker/entity.json
Normal file
59
.butcher/types/InlineQueryResultCachedSticker/entity.json
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Inline mode",
|
||||
"anchor": "inline-mode"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "inlinequeryresultcachedsticker",
|
||||
"name": "InlineQueryResultCachedSticker",
|
||||
"description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.\nNote: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.",
|
||||
"html_description": "<p>Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use <em>input_message_content</em> to send a message with the specified content instead of the sticker.</p><p><strong>Note:</strong> This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for <a href=\"https://telegram.org/blog/animated-stickers\">animated stickers</a>. Older clients will ignore them.</p>",
|
||||
"rst_description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use *input_message_content* to send a message with the specified content instead of the sticker.\n**Note:** This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for `animated stickers <https://telegram.org/blog/animated-stickers>`_. Older clients will ignore them.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Type of the result, must be sticker",
|
||||
"html_description": "<td>Type of the result, must be <em>sticker</em></td>",
|
||||
"rst_description": "Type of the result, must be *sticker*\n",
|
||||
"name": "type",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier for this result, 1-64 bytes",
|
||||
"html_description": "<td>Unique identifier for this result, 1-64 bytes</td>",
|
||||
"rst_description": "Unique identifier for this result, 1-64 bytes\n",
|
||||
"name": "id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "A valid file identifier of the sticker",
|
||||
"html_description": "<td>A valid file identifier of the sticker</td>",
|
||||
"rst_description": "A valid file identifier of the sticker\n",
|
||||
"name": "sticker_file_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "InlineKeyboardMarkup",
|
||||
"description": "Inline keyboard attached to the message",
|
||||
"html_description": "<td><em>Optional</em>. <a href=\"/bots/features#inline-keyboards\">Inline keyboard</a> attached to the message</td>",
|
||||
"rst_description": "*Optional*. `Inline keyboard <https://core.telegram.org/bots/features#inline-keyboards>`_ attached to the message\n",
|
||||
"name": "reply_markup",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "InputMessageContent",
|
||||
"description": "Content of the message to be sent instead of the sticker",
|
||||
"html_description": "<td><em>Optional</em>. Content of the message to be sent instead of the sticker</td>",
|
||||
"rst_description": "*Optional*. Content of the message to be sent instead of the sticker\n",
|
||||
"name": "input_message_content",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
bases:
|
||||
- InlineQueryResult
|
||||
Loading…
Add table
Add a link
Reference in a new issue