Stops a listener, calling stopped_handler if applicable or raising ListenerStopped if throw_exceptions is True.
Usable by
Users
Bots
- Parameters:
listener (:obj:`~pyrogram.types.Listener`) – The listener to remove.
- Raises:
ListenerStopped – If throw_exceptions is True.: