stop_listener()

Client.stop_listener()

Stops a listener, calling stopped_handler if applicable or raising ListenerStopped if throw_exceptions is True.

Usable by Users Bots
Parameters:

listener (Listener) – The listener to remove.

Raises:

ListenerStopped – If throw_exceptions is True.