Skip to content

Commit

Permalink
Update /compiler/ scripts.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
ALiwoto committed Jun 6, 2024
1 parent bf207c8 commit cd2f575
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/api/source/main_api.tl
Original file line number Diff line number Diff line change
Expand Up @@ -2478,4 +2478,4 @@ smsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool;

fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo;

// LAYER 181
// LAYER 181
40 changes: 39 additions & 1 deletion compiler/docs/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def get_title_list(s: str) -> list:
edit_inline_reply_markup
send_chat_action
delete_messages
get_available_effects
get_messages
get_scheduled_messages
get_stickers
Expand All @@ -183,12 +184,15 @@ def get_title_list(s: str) -> list:
get_chat_history_count
read_chat_history
send_poll
view_messages
vote_poll
stop_poll
retract_vote
send_dice
search_messages
search_messages_count
search_posts
search_posts_count
search_global
search_global_count
download_media
Expand Down Expand Up @@ -261,6 +265,7 @@ def get_title_list(s: str) -> list:
toggle_join_to_send
toggle_folder_tags
set_chat_ttl
get_personal_channels
""",
users="""
Users
Expand All @@ -279,6 +284,8 @@ def get_title_list(s: str) -> list:
set_emoji_status
update_status
check_username
update_birthday
update_personal_channel
""",
invite_links="""
Invite Links
Expand Down Expand Up @@ -308,6 +315,14 @@ def get_title_list(s: str) -> list:
get_contacts
get_contacts_count
""",
payments="""
Payments
check_gift_code
""",
phone="""
Phone
get_call_members
""",
password="""
Password
enable_cloud_password
Expand All @@ -332,6 +347,11 @@ def get_title_list(s: str) -> list:
set_chat_menu_button
get_chat_menu_button
answer_web_app_query
answer_pre_checkout_query
""",
business="""
Business
get_business_connection
""",
authorization="""
Authorization
Expand Down Expand Up @@ -372,7 +392,7 @@ def get_title_list(s: str) -> list:
get_stories_archive
get_stories
hide_stories
increment_story_views
view_stories
pin_stories
read_stories
send_story
Expand Down Expand Up @@ -423,7 +443,10 @@ def get_title_list(s: str) -> list:
categories = dict(
users_chats="""
Users & Chats
Birthday
BusinessConnection
BusinessInfo
BusinessIntro
BusinessMessage
BusinessRecipients
BusinessWeeklyOpen
Expand All @@ -447,6 +470,7 @@ def get_title_list(s: str) -> list:
Restriction
EmojiStatus
Folder
GroupCallMember
ChatColor
""",
messages_media="""
Expand All @@ -456,6 +480,7 @@ def get_title_list(s: str) -> list:
Photo
Thumbnail
Audio
AvailableEffect
Document
Animation
Video
Expand Down Expand Up @@ -483,7 +508,10 @@ def get_title_list(s: str) -> list:
BoostsStatus
Giveaway
GiveawayResult
Invoice
GiftCode
CheckedGiftCode
SuccessfulPayment
""",
bot_keyboards="""
Bot keyboards
Expand All @@ -508,6 +536,9 @@ def get_title_list(s: str) -> list:
RequestChatInfo
RequestUserInfo
RequestPollInfo
PaymentInfo
PreCheckoutQuery
ShippingAddress
""",
bot_commands="""
Bot commands
Expand Down Expand Up @@ -631,6 +662,8 @@ def get_title_list(s: str) -> list:
Message.reply_web_page
Message.get_media_group
Message.react
Message.read
Message.view
""",
chat="""
Chat
Expand Down Expand Up @@ -676,6 +709,10 @@ def get_title_list(s: str) -> list:
InlineQuery
InlineQuery.answer
""",
pre_checkout_query="""
PreCheckoutQuery
PreCheckoutQuery.answer
""",
chat_join_request="""
ChatJoinRequest
ChatJoinRequest.approve
Expand All @@ -702,6 +739,7 @@ def get_title_list(s: str) -> list:
Story.forward
Story.download
Story.read
Story.view
""",
folder="""
Folder
Expand Down
38 changes: 38 additions & 0 deletions compiler/docs/template/bound-methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ InlineQuery

{inline_query_toctree}

PreCheckoutQuery
-----------

.. hlist::
:columns: 2

{pre_checkout_query_hlist}

.. toctree::
:hidden:

{pre_checkout_query_toctree}

ChatJoinRequest
---------------

Expand All @@ -101,3 +114,28 @@ ChatJoinRequest

{chat_join_request_toctree}

Story
---------------

.. hlist::
:columns: 3

{story_hlist}

.. toctree::
:hidden:

{story_toctree}

Folder
---------------

.. hlist::
:columns: 2

{folder_hlist}

.. toctree::
:hidden:

{folder_toctree}
28 changes: 27 additions & 1 deletion compiler/docs/template/methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,32 @@ Authorization

{authorization}

Stories
-------------

.. autosummary::
:nosignatures:

{stories}

.. toctree::
:hidden:

{stories}

Premium
-------------

.. autosummary::
:nosignatures:

{premium}

.. toctree::
:hidden:

{premium}

Advanced
--------

Expand All @@ -165,4 +191,4 @@ Learn more about how to use the raw API at :doc:`Advanced Usage <../../topics/ad
.. toctree::
:hidden:

{advanced}
{advanced}
Loading

0 comments on commit cd2f575

Please sign in to comment.