mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Update set_event_handler docstring
This commit is contained in:
parent
9a912192f0
commit
b1064015f6
@ -351,7 +351,8 @@ class Client:
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
callback (:obj:`callable`):
|
callback (:obj:`callable`):
|
||||||
A callback function that accepts two arguments: the Client itself and the event (update) object.
|
A function that takes ``client, event`` as positional arguments.
|
||||||
|
It will be called when a new event is generated on your account.
|
||||||
"""
|
"""
|
||||||
self.event_handler = callback
|
self.event_handler = callback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user