def record(cls, rec_path) -> 'MessageSegment': if cls.check_exist(rec_path): return MessageSegment.record(f'file:///{rec_path}') elif cls.check_exist(path.join(cls.record_dir, rec_path)): return MessageSegment.record( f'file:///{path.join(cls.record_dir, rec_path)}') else: return '【图片丢了】'
def record(cls, rec_path) -> 'MessageSegment': return MessageSegment.record( f'file:///{path.join(cls.record_dir, rec_path)}')
def record(cls, rec_path) -> 'MessageSegment': return MessageSegment.record(path.join(cls.record_dir, rec_path))