User.stop_listening()

User.stop_listening()[source]

Stops listening for messages from the user. Calls Client.stop_listening() with the user_id set to the user’s id.

Parameters:
  • listener_type (ListenerTypes) – Same as hydrogram.Client.stop_listening().

  • chat_id (Union[int, str], List[Union[int, str]]) – Same as hydrogram.Client.stop_listening().

  • message_id (Union[int, List[int]]) – Same as hydrogram.Client.stop_listening().

  • inline_message_id (Union[str, List[str]]) – Same as hydrogram.Client.stop_listening().

Returns:

None