Add the new auth-related methods and types to docs

This commit is contained in:
Dan 2019-08-13 13:18:01 +02:00
parent 7daf51af9b
commit 6982c436a8
3 changed files with 52 additions and 4 deletions

View File

@ -128,10 +128,10 @@ def pyrogram_api():
utilities=""" utilities="""
Utilities Utilities
start start
stop
restart
idle idle
stop
run run
restart
add_handler add_handler
remove_handler remove_handler
stop_transmission stop_transmission
@ -247,6 +247,22 @@ def pyrogram_api():
set_game_score set_game_score
get_game_high_scores get_game_high_scores
""", """,
authorization="""
Authorization
connect
disconnect
initialize
terminate
send_code
resend_code
sign_in
sign_up
get_password_hint
check_password
send_recovery_code
recover_password
accept_terms_of_service
""",
advanced=""" advanced="""
Advanced Advanced
send send
@ -347,6 +363,11 @@ def pyrogram_api():
InputMessageContent InputMessageContent
InputMessageContent InputMessageContent
InputTextMessageContent InputTextMessageContent
""",
authorization="""
Authorization
SentCode
TermsOfService
""" """
) )

View File

@ -106,10 +106,24 @@ Bots
{bots} {bots}
Authorization
-------------
.. autosummary::
:nosignatures:
{authorization}
.. toctree::
:hidden:
{authorization}
Advanced Advanced
-------- --------
Learn more about these methods at :doc:`Advanced Usage <../../topics/advanced-usage>`. Methods used only when dealing with the raw Telegram API.
Learn more about how to use the raw API at :doc:`Advanced Usage <../../topics/advanced-usage>`.
.. autosummary:: .. autosummary::
:nosignatures: :nosignatures:

View File

@ -92,4 +92,17 @@ InputMessageContent
.. toctree:: .. toctree::
:hidden: :hidden:
{input_message_content} {input_message_content}
Authorization
-------------
.. autosummary::
:nosignatures:
{authorization}
.. toctree::
:hidden:
{authorization}