def get_publish_path(self, obj):
        """
        publish_path joins the publish_paths for the chat type and the channel.
        """
        return os.path.join(
            obj.chat_type.publish_path, obj.publish_path.lstrip("/")
        )
def get_publish_path ( self , obj ) : return os . path . join ( obj . chat_type . publish_path , obj . publish_path . lstrip ( "/" ) )
publish_path joins the publish_paths for the chat type and the channel.