diff --git a/pyrogram/methods/decorators/on_error.py b/pyrogram/methods/decorators/on_error.py index d21d75bb..7c3294d1 100644 --- a/pyrogram/methods/decorators/on_error.py +++ b/pyrogram/methods/decorators/on_error.py @@ -28,7 +28,7 @@ class OnError: """Decorator for handling new errors. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the - :obj:`~pyrogram.handlers.MessageHandler`. + :obj:`~pyrogram.handlers.ErrorHandler`. Parameters: errors (:obj:`~Exception`, *optional*):