code: def remove_handler(self, handler: Handler, group: int = 0):
          
          if isinstance(handler, DisconnectHandler):
              self.disconnect_handler = None
          else:
              self.dispatcher.remove_handler(handler, group)
docs: Removes a previously-added update handler.
  
          Make sure to provide the right group that the handler was added in. You can use
          the return value of the :meth:`add_handler` method, a tuple of (handler, group), and
          pass it directly.
  
          Args:
              handler (``Handler``):
                  The handler to be removed.
  
              group (``int``, *optional*):
                  The group identifier, defaults to 0.