code: def _on_login(self, user):
          
          self._bot = bool(user.bot)
          self._self_input_peer = utils.get_input_peer(user, allow_self=False)
          self._authorized = True
  
          return user
docs: Callback called whenever the login or sign up process completes.
  
          Returns the input user parameter.