2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 21:38:04 +00:00

Fix broken links on decorators' docs

This commit is contained in:
Dan 2019-06-07 15:48:46 +02:00
parent da515af959
commit a80c5c1dbb
8 changed files with 16 additions and 14 deletions

View File

@ -32,10 +32,11 @@ class OnCallbackQuery(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling callback queries. """Decorator for handling callback queries.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`CallbackQueryHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the
:obj:`~pyrogram.CallbackQueryHandler`.
Parameters: Parameters:
filters (:obj:`Filters`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of callback queries to be passed Pass one or more filters to allow only a subset of callback queries to be passed
in your function. in your function.

View File

@ -32,10 +32,11 @@ class OnDeletedMessages(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling deleted messages. """Decorator for handling deleted messages.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`DeletedMessagesHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the
:obj:`~pyrogram.DeletedMessagesHandler`.
Parameters: Parameters:
filters (:obj:`Filters`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of messages to be passed Pass one or more filters to allow only a subset of messages to be passed
in your function. in your function.

View File

@ -25,7 +25,7 @@ class OnDisconnect(BaseClient):
def on_disconnect(self=None) -> callable: def on_disconnect(self=None) -> callable:
"""Decorator for handling disconnections. """Decorator for handling disconnections.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`DisconnectHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.DisconnectHandler`.
""" """
def decorator(func: callable) -> Handler: def decorator(func: callable) -> Handler:

View File

@ -32,10 +32,10 @@ class OnInlineQuery(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling inline queries. """Decorator for handling inline queries.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`InlineQueryHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.InlineQueryHandler`.
Parameters: Parameters:
filters (:obj:`Filters <pyrogram.Filters>`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of inline queries to be passed Pass one or more filters to allow only a subset of inline queries to be passed
in your function. in your function.

View File

@ -32,10 +32,10 @@ class OnMessage(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling messages. """Decorator for handling messages.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`MessageHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.MessageHandler`.
Parameters: Parameters:
filters (:obj:`Filters`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of messages to be passed Pass one or more filters to allow only a subset of messages to be passed
in your function. in your function.

View File

@ -32,10 +32,10 @@ class OnPoll(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling poll updates. """Decorator for handling poll updates.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`PollHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.PollHandler`.
Parameters: Parameters:
filters (:obj:`Filters`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of polls to be passed Pass one or more filters to allow only a subset of polls to be passed
in your function. in your function.

View File

@ -30,7 +30,7 @@ class OnRawUpdate(BaseClient):
) -> callable: ) -> callable:
"""Decorator for handling raw updates. """Decorator for handling raw updates.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`RawUpdateHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.RawUpdateHandler`.
Parameters: Parameters:
group (``int``, *optional*): group (``int``, *optional*):

View File

@ -31,10 +31,10 @@ class OnUserStatus(BaseClient):
group: int = 0 group: int = 0
) -> callable: ) -> callable:
"""Decorator for handling user status updates. """Decorator for handling user status updates.
This does the same thing as :meth:`~Client.add_handler` using the :obj:`UserStatusHandler`. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the :obj:`~pyrogram.UserStatusHandler`.
Parameters: Parameters:
filters (:obj:`Filters`): filters (:obj:`~pyrogram.Filters`, *optional*):
Pass one or more filters to allow only a subset of UserStatus updated to be passed in your function. Pass one or more filters to allow only a subset of UserStatus updated to be passed in your function.
group (``int``, *optional*): group (``int``, *optional*):