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,59 @@
{
"meta": {
"deprecated": false
},
"group": {
"title": "Payments",
"anchor": "payments"
},
"object": {
"anchor": "invoice",
"name": "Invoice",
"description": "This object contains basic information about an invoice.",
"html_description": "<p>This object contains basic information about an invoice.</p>",
"rst_description": "This object contains basic information about an invoice.",
"annotations": [
{
"type": "String",
"description": "Product name",
"html_description": "<td>Product name</td>",
"rst_description": "Product name\n",
"name": "title",
"required": true
},
{
"type": "String",
"description": "Product description",
"html_description": "<td>Product description</td>",
"rst_description": "Product description\n",
"name": "description",
"required": true
},
{
"type": "String",
"description": "Unique bot deep-linking parameter that can be used to generate this invoice",
"html_description": "<td>Unique bot deep-linking parameter that can be used to generate this invoice</td>",
"rst_description": "Unique bot deep-linking parameter that can be used to generate this invoice\n",
"name": "start_parameter",
"required": true
},
{
"type": "String",
"description": "Three-letter ISO 4217 currency code",
"html_description": "<td>Three-letter ISO 4217 <a href=\"/bots/payments#supported-currencies\">currency</a> code</td>",
"rst_description": "Three-letter ISO 4217 `currency <https://core.telegram.org/bots/payments#supported-currencies>`_ code\n",
"name": "currency",
"required": true
},
{
"type": "Integer",
"description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).",
"html_description": "<td>Total price in the <em>smallest units</em> of the currency (integer, <strong>not</strong> float/double). For example, for a price of <code>US$ 1.45</code> pass <code>amount = 145</code>. See the <em>exp</em> parameter in <a href=\"/bots/payments/currencies.json\">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</td>",
"rst_description": "Total price in the *smallest units* of the currency (integer, **not** float/double). For example, for a price of :code:`US$ 1.45` pass :code:`amount = 145`. See the *exp* parameter in `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).\n",
"name": "total_amount",
"required": true
}
],
"category": "types"
}
}