Skip to content

Commit 6982c43

Browse files
committed
Add the new auth-related methods and types to docs
1 parent 7daf51a commit 6982c43

3 files changed

Lines changed: 52 additions & 4 deletions

File tree

compiler/docs/compiler.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def get_title_list(s: str) -> list:
128128
utilities="""
129129
Utilities
130130
start
131-
stop
132-
restart
133131
idle
132+
stop
134133
run
134+
restart
135135
add_handler
136136
remove_handler
137137
stop_transmission
@@ -247,6 +247,22 @@ def get_title_list(s: str) -> list:
247247
set_game_score
248248
get_game_high_scores
249249
""",
250+
authorization="""
251+
Authorization
252+
connect
253+
disconnect
254+
initialize
255+
terminate
256+
send_code
257+
resend_code
258+
sign_in
259+
sign_up
260+
get_password_hint
261+
check_password
262+
send_recovery_code
263+
recover_password
264+
accept_terms_of_service
265+
""",
250266
advanced="""
251267
Advanced
252268
send
@@ -347,6 +363,11 @@ def get_title_list(s: str) -> list:
347363
InputMessageContent
348364
InputMessageContent
349365
InputTextMessageContent
366+
""",
367+
authorization="""
368+
Authorization
369+
SentCode
370+
TermsOfService
350371
"""
351372
)
352373

compiler/docs/template/methods.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,24 @@ Bots
106106

107107
{bots}
108108

109+
Authorization
110+
-------------
111+
112+
.. autosummary::
113+
:nosignatures:
114+
115+
{authorization}
116+
117+
.. toctree::
118+
:hidden:
119+
120+
{authorization}
121+
109122
Advanced
110123
--------
111124

112-
Learn more about these methods at :doc:`Advanced Usage <../../topics/advanced-usage>`.
125+
Methods used only when dealing with the raw Telegram API.
126+
Learn more about how to use the raw API at :doc:`Advanced Usage <../../topics/advanced-usage>`.
113127

114128
.. autosummary::
115129
:nosignatures:

compiler/docs/template/types.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,17 @@ InputMessageContent
9292
.. toctree::
9393
:hidden:
9494

95-
{input_message_content}
95+
{input_message_content}
96+
97+
Authorization
98+
-------------
99+
100+
.. autosummary::
101+
:nosignatures:
102+
103+
{authorization}
104+
105+
.. toctree::
106+
:hidden:
107+
108+
{authorization}

0 commit comments

Comments
 (0)