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": "Getting updates",
"anchor": "getting-updates"
},
"object": {
"anchor": "webhookinfo",
"name": "WebhookInfo",
"description": "Describes the current status of a webhook.",
"html_description": "<p>Describes the current status of a webhook.</p>",
"rst_description": "Describes the current status of a webhook.",
"annotations": [
{
"type": "String",
"description": "Webhook URL, may be empty if webhook is not set up",
"html_description": "<td>Webhook URL, may be empty if webhook is not set up</td>",
"rst_description": "Webhook URL, may be empty if webhook is not set up\n",
"name": "url",
"required": true
},
{
"type": "Boolean",
"description": "True, if a custom certificate was provided for webhook certificate checks",
"html_description": "<td><em>True</em>, if a custom certificate was provided for webhook certificate checks</td>",
"rst_description": ":code:`True`, if a custom certificate was provided for webhook certificate checks\n",
"name": "has_custom_certificate",
"required": true
},
{
"type": "Integer",
"description": "Number of updates awaiting delivery",
"html_description": "<td>Number of updates awaiting delivery</td>",
"rst_description": "Number of updates awaiting delivery\n",
"name": "pending_update_count",
"required": true
},
{
"type": "String",
"description": "Currently used webhook IP address",
"html_description": "<td><em>Optional</em>. Currently used webhook IP address</td>",
"rst_description": "*Optional*. Currently used webhook IP address\n",
"name": "ip_address",
"required": false
},
{
"type": "Integer",
"description": "Unix time for the most recent error that happened when trying to deliver an update via webhook",
"html_description": "<td><em>Optional</em>. Unix time for the most recent error that happened when trying to deliver an update via webhook</td>",
"rst_description": "*Optional*. Unix time for the most recent error that happened when trying to deliver an update via webhook\n",
"name": "last_error_date",
"required": false
},
{
"type": "String",
"description": "Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook",
"html_description": "<td><em>Optional</em>. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook</td>",
"rst_description": "*Optional*. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook\n",
"name": "last_error_message",
"required": false
},
{
"type": "Integer",
"description": "Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters",
"html_description": "<td><em>Optional</em>. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters</td>",
"rst_description": "*Optional*. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters\n",
"name": "last_synchronization_error_date",
"required": false
},
{
"type": "Integer",
"description": "The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery",
"html_description": "<td><em>Optional</em>. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery</td>",
"rst_description": "*Optional*. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery\n",
"name": "max_connections",
"required": false
},
{
"type": "Array of String",
"description": "A list of update types the bot is subscribed to. Defaults to all update types except chat_member",
"html_description": "<td><em>Optional</em>. A list of update types the bot is subscribed to. Defaults to all update types except <em>chat_member</em></td>",
"rst_description": "*Optional*. A list of update types the bot is subscribed to. Defaults to all update types except *chat_member*\n",
"name": "allowed_updates",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,6 @@
annotations:
last_error_date: &date
parsed_type:
type: std
name: datetime.datetime
last_synchronization_error_date: *date