code: def on_raw_update(
          self=None,
          group: int = 0
      ) -> callable:
          
  
          def decorator(func: callable) -> Tuple[Handler, int]:
              if isinstance(func, tuple):
                  func = func[0].callback
  
              handler = pyrogram.RawUpdateHandler(func)
  
              if isinstance(self, int):
                  return handler, group if self is None else group
  
              if self is not None:
                  self.add_handler(handler, group)
  
              return handler, group
  
          return decorator
docs: Use this decorator to automatically register a function for handling raw updates.
          This does the same thing as :meth:`add_handler` using the :class:`RawUpdateHandler`.
  
          Args:
              group (``int``, *optional*):
                  The group identifier, defaults to 0.