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,67 @@
{
"meta": {
"deprecated": false
},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "chatmemberupdated",
"name": "ChatMemberUpdated",
"description": "This object represents changes in the status of a chat member.",
"html_description": "<p>This object represents changes in the status of a chat member.</p>",
"rst_description": "This object represents changes in the status of a chat member.",
"annotations": [
{
"type": "Chat",
"description": "Chat the user belongs to",
"html_description": "<td>Chat the user belongs to</td>",
"rst_description": "Chat the user belongs to\n",
"name": "chat",
"required": true
},
{
"type": "User",
"description": "Performer of the action, which resulted in the change",
"html_description": "<td>Performer of the action, which resulted in the change</td>",
"rst_description": "Performer of the action, which resulted in the change\n",
"name": "from",
"required": true
},
{
"type": "Integer",
"description": "Date the change was done in Unix time",
"html_description": "<td>Date the change was done in Unix time</td>",
"rst_description": "Date the change was done in Unix time\n",
"name": "date",
"required": true
},
{
"type": "ChatMember",
"description": "Previous information about the chat member",
"html_description": "<td>Previous information about the chat member</td>",
"rst_description": "Previous information about the chat member\n",
"name": "old_chat_member",
"required": true
},
{
"type": "ChatMember",
"description": "New information about the chat member",
"html_description": "<td>New information about the chat member</td>",
"rst_description": "New information about the chat member\n",
"name": "new_chat_member",
"required": true
},
{
"type": "ChatInviteLink",
"description": "Chat invite link, which was used by the user to join the chat; for joining by invite link events only.",
"html_description": "<td><em>Optional</em>. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.</td>",
"rst_description": "*Optional*. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.\n",
"name": "invite_link",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,34 @@
annotations:
date:
parsed_type:
type: std
name: datetime.datetime
old_chat_member: &chat-member-type
parsed_type:
type: union
items:
- type: entity
references:
category: types
name: ChatMemberOwner
- type: entity
references:
category: types
name: ChatMemberAdministrator
- type: entity
references:
category: types
name: ChatMemberMember
- type: entity
references:
category: types
name: ChatMemberRestricted
- type: entity
references:
category: types
name: ChatMemberLeft
- type: entity
references:
category: types
name: ChatMemberBanned
new_chat_member: *chat-member-type