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,132 +5,79 @@ Methods
Here is list of all available API methods:
Getting updates
===============
.. toctree::
:maxdepth: 1
get_updates
set_webhook
delete_webhook
get_webhook_info
Available methods
=================
.. toctree::
:maxdepth: 1
get_me
log_out
close
send_message
forward_message
copy_message
send_photo
send_audio
send_document
send_video
send_animation
send_voice
send_video_note
send_media_group
send_location
edit_message_live_location
stop_message_live_location
send_venue
send_contact
send_poll
send_dice
send_chat_action
get_user_profile_photos
get_file
ban_chat_member
kick_chat_member
unban_chat_member
restrict_chat_member
promote_chat_member
set_chat_administrator_custom_title
ban_chat_sender_chat
unban_chat_sender_chat
set_chat_permissions
export_chat_invite_link
create_chat_invite_link
edit_chat_invite_link
revoke_chat_invite_link
answer_callback_query
approve_chat_join_request
ban_chat_member
ban_chat_sender_chat
close
close_forum_topic
copy_message
create_chat_invite_link
create_forum_topic
decline_chat_join_request
set_chat_photo
delete_chat_photo
set_chat_title
set_chat_description
pin_chat_message
unpin_chat_message
unpin_all_chat_messages
leave_chat
delete_chat_sticker_set
delete_forum_topic
delete_my_commands
edit_chat_invite_link
edit_forum_topic
edit_message_live_location
export_chat_invite_link
forward_message
get_chat
get_chat_administrators
get_chat_member_count
get_chat_members_count
get_chat_member
set_chat_sticker_set
delete_chat_sticker_set
get_forum_topic_icon_stickers
create_forum_topic
edit_forum_topic
close_forum_topic
reopen_forum_topic
delete_forum_topic
unpin_all_forum_topic_messages
answer_callback_query
set_my_commands
delete_my_commands
get_my_commands
set_chat_menu_button
get_chat_member_count
get_chat_menu_button
set_my_default_administrator_rights
get_file
get_forum_topic_icon_stickers
get_me
get_my_commands
get_my_default_administrator_rights
Updating messages
=================
.. toctree::
:maxdepth: 1
edit_message_text
edit_message_caption
edit_message_media
edit_message_reply_markup
stop_poll
delete_message
Stickers
========
.. toctree::
:maxdepth: 1
send_sticker
get_sticker_set
get_custom_emoji_stickers
upload_sticker_file
create_new_sticker_set
add_sticker_to_set
set_sticker_position_in_set
delete_sticker_from_set
set_sticker_set_thumb
Inline mode
===========
.. toctree::
:maxdepth: 1
answer_inline_query
answer_web_app_query
get_user_profile_photos
leave_chat
log_out
pin_chat_message
promote_chat_member
reopen_forum_topic
restrict_chat_member
revoke_chat_invite_link
send_animation
send_audio
send_chat_action
send_contact
send_dice
send_document
send_location
send_media_group
send_message
send_photo
send_poll
send_venue
send_video
send_video_note
send_voice
set_chat_administrator_custom_title
set_chat_description
set_chat_menu_button
set_chat_permissions
set_chat_photo
set_chat_sticker_set
set_chat_title
set_my_commands
set_my_default_administrator_rights
stop_message_live_location
unban_chat_member
unban_chat_sender_chat
unpin_all_chat_messages
unpin_all_forum_topic_messages
unpin_chat_message
Payments
========
@ -138,10 +85,47 @@ Payments
.. toctree::
:maxdepth: 1
send_invoice
create_invoice_link
answer_shipping_query
answer_pre_checkout_query
answer_shipping_query
create_invoice_link
send_invoice
Stickers
========
.. toctree::
:maxdepth: 1
add_sticker_to_set
create_new_sticker_set
delete_sticker_from_set
get_custom_emoji_stickers
get_sticker_set
send_sticker
set_sticker_position_in_set
set_sticker_set_thumb
upload_sticker_file
Games
=====
.. toctree::
:maxdepth: 1
get_game_high_scores
send_game
set_game_score
Getting updates
===============
.. toctree::
:maxdepth: 1
delete_webhook
get_updates
get_webhook_info
set_webhook
Telegram Passport
=================
@ -151,12 +135,24 @@ Telegram Passport
set_passport_data_errors
Games
=====
Updating messages
=================
.. toctree::
:maxdepth: 1
send_game
set_game_score
get_game_high_scores
delete_message
edit_message_caption
edit_message_media
edit_message_reply_markup
edit_message_text
stop_poll
Inline mode
===========
.. toctree::
:maxdepth: 1
answer_inline_query
answer_web_app_query