diff --git a/docs/source/api/handlers.rst b/docs/source/api/handlers.rst index b06ebbed..2d83a05d 100644 --- a/docs/source/api/handlers.rst +++ b/docs/source/api/handlers.rst @@ -41,7 +41,7 @@ Index - :class:`CallbackQueryHandler` - :class:`InlineQueryHandler` - :class:`ChosenInlineResultHandler` - - :class:`ChatMemberUpdated` + - :class:`ChatMemberUpdatedHandler` - :class:`UserStatusHandler` - :class:`PollHandler` - :class:`DisconnectHandler` @@ -58,7 +58,7 @@ Details .. autoclass:: CallbackQueryHandler() .. autoclass:: InlineQueryHandler() .. autoclass:: ChosenInlineResultHandler() -.. autoclass:: ChatMemberUpdated() +.. autoclass:: ChatMemberUpdatedHandler() .. autoclass:: UserStatusHandler() .. autoclass:: PollHandler() .. autoclass:: DisconnectHandler() diff --git a/pyrogram/methods/decorators/on_chat_member_updated.py b/pyrogram/methods/decorators/on_chat_member_updated.py index e184bbef..fcf2ec6b 100644 --- a/pyrogram/methods/decorators/on_chat_member_updated.py +++ b/pyrogram/methods/decorators/on_chat_member_updated.py @@ -32,7 +32,7 @@ class OnChatMemberUpdated(Scaffold): """Decorator for handling event changes on chat members. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the - :obj:`~pyrogram.handlers.ChatMemberUpdated`. + :obj:`~pyrogram.handlers.ChatMemberUpdatedHandler`. Parameters: filters (:obj:`~pyrogram.filters`, *optional*): diff --git a/pyrogram/methods/decorators/on_chosen_inline_result.py b/pyrogram/methods/decorators/on_chosen_inline_result.py index e457fcc0..ae56ea07 100644 --- a/pyrogram/methods/decorators/on_chosen_inline_result.py +++ b/pyrogram/methods/decorators/on_chosen_inline_result.py @@ -32,7 +32,7 @@ class OnChosenInlineResult(Scaffold): """Decorator for handling chosen inline results. This does the same thing as :meth:`~pyrogram.Client.add_handler` using the - :obj:`~pyrogram.handlers.ChosenInlineResult`. + :obj:`~pyrogram.handlers.ChosenInlineResultHandler`. Parameters: filters (:obj:`~pyrogram.filters`, *optional*):