(cls, app, media_id, src=None, save=True)
return app.upload_material(resp, permenant=True, save=save)
将临时素材转换为永久素材
将临时素材转换为永久素材
将临时素材转换为永久素材
def as_permenant(cls, app, media_id, src=None, save=True):
        """将临时素材转换为永久素材"""
        src = src or app
        # 下载临时素材
        resp = src.client.media.download(media_id)

        # 上载素材
        return app.upload_material(resp, permenant=True, save=save)
def as_permenant ( cls , app , media_id , src = None , save = True ) : src = src or app # 下载临时素材 resp = src . client . media . download ( media_id ) # 上载素材 return app . upload_material ( resp , permenant = True , save = save )