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

@ -5,6 +5,147 @@ Types
Here is list of all available API types:
Inline mode
===========
.. toctree::
:maxdepth: 1
chosen_inline_result
inline_query
inline_query_result
inline_query_result_article
inline_query_result_audio
inline_query_result_cached_audio
inline_query_result_cached_document
inline_query_result_cached_gif
inline_query_result_cached_mpeg4_gif
inline_query_result_cached_photo
inline_query_result_cached_sticker
inline_query_result_cached_video
inline_query_result_cached_voice
inline_query_result_contact
inline_query_result_document
inline_query_result_game
inline_query_result_gif
inline_query_result_location
inline_query_result_mpeg4_gif
inline_query_result_photo
inline_query_result_venue
inline_query_result_video
inline_query_result_voice
input_contact_message_content
input_invoice_message_content
input_location_message_content
input_message_content
input_text_message_content
input_venue_message_content
sent_web_app_message
Available types
===============
.. toctree::
:maxdepth: 1
animation
audio
bot_command
bot_command_scope
bot_command_scope_all_chat_administrators
bot_command_scope_all_group_chats
bot_command_scope_all_private_chats
bot_command_scope_chat
bot_command_scope_chat_administrators
bot_command_scope_chat_member
bot_command_scope_default
callback_query
chat
chat_administrator_rights
chat_invite_link
chat_join_request
chat_location
chat_member
chat_member_administrator
chat_member_banned
chat_member_left
chat_member_member
chat_member_owner
chat_member_restricted
chat_member_updated
chat_permissions
chat_photo
contact
dice
document
file
force_reply
forum_topic
forum_topic_closed
forum_topic_created
forum_topic_reopened
inline_keyboard_button
inline_keyboard_markup
input_file
input_media
input_media_animation
input_media_audio
input_media_document
input_media_photo
input_media_video
keyboard_button
keyboard_button_poll_type
location
login_url
menu_button
menu_button_commands
menu_button_default
menu_button_web_app
message
message_auto_delete_timer_changed
message_entity
message_id
photo_size
poll
poll_answer
poll_option
proximity_alert_triggered
reply_keyboard_markup
reply_keyboard_remove
response_parameters
user
user_profile_photos
venue
video
video_chat_ended
video_chat_participants_invited
video_chat_scheduled
video_chat_started
video_note
voice
web_app_data
web_app_info
Telegram Passport
=================
.. toctree::
:maxdepth: 1
encrypted_credentials
encrypted_passport_element
passport_data
passport_element_error
passport_element_error_data_field
passport_element_error_file
passport_element_error_files
passport_element_error_front_side
passport_element_error_reverse_side
passport_element_error_selfie
passport_element_error_translation_file
passport_element_error_translation_files
passport_element_error_unspecified
passport_file
Getting updates
===============
@ -15,138 +156,15 @@ Getting updates
update
webhook_info
Available types
===============
.. toctree::
:maxdepth: 1
user
chat
message
message_id
message_entity
photo_size
animation
audio
document
video
video_note
voice
contact
dice
poll_option
poll_answer
poll
location
venue
web_app_data
proximity_alert_triggered
message_auto_delete_timer_changed
forum_topic_created
forum_topic_closed
forum_topic_reopened
video_chat_scheduled
video_chat_started
video_chat_ended
video_chat_participants_invited
user_profile_photos
file
web_app_info
reply_keyboard_markup
keyboard_button
keyboard_button_poll_type
reply_keyboard_remove
inline_keyboard_markup
inline_keyboard_button
login_url
callback_query
force_reply
chat_photo
chat_invite_link
chat_administrator_rights
chat_member
chat_member_owner
chat_member_administrator
chat_member_member
chat_member_restricted
chat_member_left
chat_member_banned
chat_member_updated
chat_join_request
chat_permissions
chat_location
forum_topic
bot_command
bot_command_scope
bot_command_scope_default
bot_command_scope_all_private_chats
bot_command_scope_all_group_chats
bot_command_scope_all_chat_administrators
bot_command_scope_chat
bot_command_scope_chat_administrators
bot_command_scope_chat_member
menu_button
menu_button_commands
menu_button_web_app
menu_button_default
response_parameters
input_media
input_media_photo
input_media_video
input_media_animation
input_media_audio
input_media_document
input_file
Stickers
========
.. toctree::
:maxdepth: 1
mask_position
sticker
sticker_set
mask_position
Inline mode
===========
.. toctree::
:maxdepth: 1
inline_query
inline_query_result
inline_query_result_article
inline_query_result_photo
inline_query_result_gif
inline_query_result_mpeg4_gif
inline_query_result_video
inline_query_result_audio
inline_query_result_voice
inline_query_result_document
inline_query_result_location
inline_query_result_venue
inline_query_result_contact
inline_query_result_game
inline_query_result_cached_photo
inline_query_result_cached_gif
inline_query_result_cached_mpeg4_gif
inline_query_result_cached_sticker
inline_query_result_cached_document
inline_query_result_cached_video
inline_query_result_cached_voice
inline_query_result_cached_audio
input_message_content
input_text_message_content
input_location_message_content
input_venue_message_content
input_contact_message_content
input_invoice_message_content
chosen_inline_result
sent_web_app_message
Payments
========
@ -154,35 +172,14 @@ Payments
.. toctree::
:maxdepth: 1
labeled_price
invoice
shipping_address
labeled_price
order_info
shipping_option
successful_payment
shipping_query
pre_checkout_query
Telegram Passport
=================
.. toctree::
:maxdepth: 1
passport_data
passport_file
encrypted_passport_element
encrypted_credentials
passport_element_error
passport_element_error_data_field
passport_element_error_front_side
passport_element_error_reverse_side
passport_element_error_selfie
passport_element_error_file
passport_element_error_files
passport_element_error_translation_file
passport_element_error_translation_files
passport_element_error_unspecified
shipping_address
shipping_option
shipping_query
successful_payment
Games
=====
@ -190,15 +187,6 @@ Games
.. toctree::
:maxdepth: 1
game
callback_game
game
game_high_score
Internal events
===============
.. toctree::
:maxdepth: 1
error_event