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
91
.butcher/types/ChatPermissions/entity.json
Normal file
91
.butcher/types/ChatPermissions/entity.json
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "chatpermissions",
|
||||
"name": "ChatPermissions",
|
||||
"description": "Describes actions that a non-administrator user is allowed to take in a chat.",
|
||||
"html_description": "<p>Describes actions that a non-administrator user is allowed to take in a chat.</p>",
|
||||
"rst_description": "Describes actions that a non-administrator user is allowed to take in a chat.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to send text messages, contacts, locations and venues",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to send text messages, contacts, locations and venues</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to send text messages, contacts, locations and venues\n",
|
||||
"name": "can_send_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages\n",
|
||||
"name": "can_send_media_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to send polls, implies can_send_messages",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to send polls, implies can_send_messages</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to send polls, implies can_send_messages\n",
|
||||
"name": "can_send_polls",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages\n",
|
||||
"name": "can_send_other_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to add web page previews to their messages, implies can_send_media_messages</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to add web page previews to their messages, implies can_send_media_messages\n",
|
||||
"name": "can_add_web_page_previews",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups\n",
|
||||
"name": "can_change_info",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to invite new users to the chat",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to invite new users to the chat</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to invite new users to the chat\n",
|
||||
"name": "can_invite_users",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to pin messages. Ignored in public supergroups",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to pin messages. Ignored in public supergroups</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to pin messages. Ignored in public supergroups\n",
|
||||
"name": "can_pin_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages\n",
|
||||
"name": "can_manage_topics",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
2
.butcher/types/ChatPermissions/replace.yml
Normal file
2
.butcher/types/ChatPermissions/replace.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bases:
|
||||
- MutableTelegramObject
|
||||
Loading…
Add table
Add a link
Reference in a new issue