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:
Alex Root Junior 2022-11-21 01:06:55 +02:00 committed by GitHub
parent c7779abc50
commit d034c1ba9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
387 changed files with 32036 additions and 3144 deletions

View 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"
}
}

View file

@ -0,0 +1,2 @@
bases:
- MutableTelegramObject