mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Cross reference Handler classes on decorators' docstrings
This commit is contained in:
parent
ac47ffad8f
commit
6be8f1aae3
@ -24,7 +24,7 @@ class OnCallbackQuery(BaseClient):
|
|||||||
def on_callback_query(self, filters=None, group: int = 0):
|
def on_callback_query(self, filters=None, group: int = 0):
|
||||||
"""Use this decorator to automatically register a function for handling
|
"""Use this decorator to automatically register a function for handling
|
||||||
callback queries. This does the same thing as :meth:`add_handler` using the
|
callback queries. This does the same thing as :meth:`add_handler` using the
|
||||||
CallbackQueryHandler.
|
:class:`CallbackQueryHandler`.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
filters (:obj:`Filters <pyrogram.Filters>`):
|
filters (:obj:`Filters <pyrogram.Filters>`):
|
||||||
|
@ -24,7 +24,7 @@ class OnDeletedMessages(BaseClient):
|
|||||||
def on_deleted_messages(self, filters=None, group: int = 0):
|
def on_deleted_messages(self, filters=None, group: int = 0):
|
||||||
"""Use this decorator to automatically register a function for handling
|
"""Use this decorator to automatically register a function for handling
|
||||||
deleted messages. This does the same thing as :meth:`add_handler` using the
|
deleted messages. This does the same thing as :meth:`add_handler` using the
|
||||||
DeletedMessagesHandler.
|
:class:`DeletedMessagesHandler`.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
filters (:obj:`Filters <pyrogram.Filters>`):
|
filters (:obj:`Filters <pyrogram.Filters>`):
|
||||||
|
@ -24,7 +24,7 @@ class OnDisconnect(BaseClient):
|
|||||||
def on_disconnect(self):
|
def on_disconnect(self):
|
||||||
"""Use this decorator to automatically register a function for handling
|
"""Use this decorator to automatically register a function for handling
|
||||||
disconnections. This does the same thing as :meth:`add_handler` using the
|
disconnections. This does the same thing as :meth:`add_handler` using the
|
||||||
DisconnectHandler.
|
:class:`DisconnectHandler`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def decorator(func):
|
def decorator(func):
|
||||||
|
@ -24,7 +24,7 @@ class OnMessage(BaseClient):
|
|||||||
def on_message(self, filters=None, group: int = 0):
|
def on_message(self, filters=None, group: int = 0):
|
||||||
"""Use this decorator to automatically register a function for handling
|
"""Use this decorator to automatically register a function for handling
|
||||||
messages. This does the same thing as :meth:`add_handler` using the
|
messages. This does the same thing as :meth:`add_handler` using the
|
||||||
MessageHandler.
|
:class:`MessageHandler`.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
filters (:obj:`Filters <pyrogram.Filters>`):
|
filters (:obj:`Filters <pyrogram.Filters>`):
|
||||||
|
@ -24,7 +24,7 @@ class OnRawUpdate(BaseClient):
|
|||||||
def on_raw_update(self, group: int = 0):
|
def on_raw_update(self, group: int = 0):
|
||||||
"""Use this decorator to automatically register a function for handling
|
"""Use this decorator to automatically register a function for handling
|
||||||
raw updates. This does the same thing as :meth:`add_handler` using the
|
raw updates. This does the same thing as :meth:`add_handler` using the
|
||||||
RawUpdateHandler.
|
:class:`RawUpdateHandler`.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
group (``int``, *optional*):
|
group (``int``, *optional*):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user