Skip to content

Commit

Permalink
Upgrade schema to latest version and add new methods.
Browse files Browse the repository at this point in the history
Signed-off-by: Aliwoto <[email protected]>
  • Loading branch information
ALiwoto committed Aug 13, 2024
1 parent cb07c01 commit d26f696
Show file tree
Hide file tree
Showing 73 changed files with 3,497 additions and 242 deletions.
93 changes: 69 additions & 24 deletions compiler/api/source/main_api.tl

Large diffs are not rendered by default.

45 changes: 42 additions & 3 deletions compiler/docs/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def get_title_list(s: str) -> list:
send_web_page
start_bot
update_color
delete_chat_history
send_paid_media
""",
chats="""
Chats
Expand Down Expand Up @@ -274,6 +276,7 @@ def get_title_list(s: str) -> list:
get_chat_photos
get_chat_photos_count
set_profile_photo
set_personal_channel
delete_profile_photos
set_username
update_profile
Expand All @@ -285,7 +288,6 @@ def get_title_list(s: str) -> list:
update_status
check_username
update_birthday
update_personal_channel
""",
invite_links="""
Invite Links
Expand Down Expand Up @@ -314,10 +316,13 @@ def get_title_list(s: str) -> list:
import_contacts
get_contacts
get_contacts_count
search_contacts
""",
payments="""
Payments
check_gift_code
get_payment_form
send_payment_form
""",
phone="""
Phone
Expand All @@ -333,6 +338,7 @@ def get_title_list(s: str) -> list:
Bots
get_inline_bot_results
send_inline_bot_result
send_invoice
answer_callback_query
answer_inline_query
request_callback_answer
Expand Down Expand Up @@ -370,6 +376,9 @@ def get_title_list(s: str) -> list:
recover_password
accept_terms_of_service
log_out
get_active_sessions
reset_session
reset_sessions
""",
advanced="""
Advanced
Expand Down Expand Up @@ -402,6 +411,13 @@ def get_title_list(s: str) -> list:
apply_boost
get_boosts
get_boosts_status
""",
account="""
Account
get_account_ttl
set_account_ttl
set_privacy
get_privacy
"""
)

Expand Down Expand Up @@ -454,7 +470,6 @@ def get_title_list(s: str) -> list:
User
Username
Chat
ChatPreview
ChatPhoto
ChatMember
ChatPermissions
Expand All @@ -472,6 +487,8 @@ def get_title_list(s: str) -> list:
Folder
GroupCallMember
ChatColor
FoundContacts
PrivacyRule
""",
messages_media="""
Messages & Media
Expand Down Expand Up @@ -512,6 +529,9 @@ def get_title_list(s: str) -> list:
GiftCode
CheckedGiftCode
SuccessfulPayment
PaidMediaInfo
PaidMediaPreview
PaymentForm
""",
bot_keyboards="""
Bot keyboards
Expand All @@ -536,7 +556,7 @@ def get_title_list(s: str) -> list:
RequestChatInfo
RequestUserInfo
RequestPollInfo
PaymentInfo
OrderInfo
PreCheckoutQuery
ShippingAddress
""",
Expand Down Expand Up @@ -592,8 +612,22 @@ def get_title_list(s: str) -> list:
""",
authorization="""
Authorization
ActiveSession
ActiveSessions
SentCode
TermsOfService
""",
input_privacy_rule="""
InputPrivacyRule
InputPrivacyRuleAllowAll
InputPrivacyRuleAllowContacts
InputPrivacyRuleAllowPremium
InputPrivacyRuleAllowUsers
InputPrivacyRuleAllowChats
InputPrivacyRuleDisallowAll
InputPrivacyRuleDisallowContacts
InputPrivacyRuleDisallowUsers
InputPrivacyRuleDisallowChats
"""
)

Expand Down Expand Up @@ -664,6 +698,7 @@ def get_title_list(s: str) -> list:
Message.react
Message.read
Message.view
Message.pay
""",
chat="""
Chat
Expand Down Expand Up @@ -751,6 +786,10 @@ def get_title_list(s: str) -> list:
Folder.pin_chat
Folder.remove_chat
Folder.export_link
""",
active_session="""
ActiveSession
ActiveSession.reset
"""
)

Expand Down
13 changes: 13 additions & 0 deletions compiler/docs/template/bound-methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,16 @@ Folder
:hidden:

{folder_toctree}

ActiveSession
-------------

.. hlist::
:columns: 2

{active_session_hlist}

.. toctree::
:hidden:

{active_session_toctree}
52 changes: 52 additions & 0 deletions compiler/docs/template/methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,58 @@ Premium

{premium}

Phone
-----

.. autosummary::
:nosignatures:

{phone}

.. toctree::
:hidden:

{phone}

Business
--------

.. autosummary::
:nosignatures:

{business}

.. toctree::
:hidden:

{business}

Payments
--------

.. autosummary::
:nosignatures:

{payments}

.. toctree::
:hidden:

{payments}

Account
-------

.. autosummary::
:nosignatures:

{account}

.. toctree::
:hidden:

{account}

Advanced
--------

Expand Down
15 changes: 14 additions & 1 deletion compiler/docs/template/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,17 @@ Authorization
.. toctree::
:hidden:

{authorization}
{authorization}

InputPrivacyRule
----------------

.. autosummary::
:nosignatures:

{input_privacy_rule}

.. toctree::
:hidden:

{input_privacy_rule}
Loading

0 comments on commit d26f696

Please sign in to comment.