def _on_login(self, user):
        """
        Callback called whenever the login or sign up process completes.

        Returns the input user parameter.
        """
        self._bot = bool(user.bot)
        self._self_input_peer = utils.get_input_peer(user, allow_self=False)
        self._authorized = True

        return user
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
Callback called whenever the login or sign up process completes.

        Returns the input user parameter.