예제 #1
0
 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 '【图片丢了】'
예제 #2
0
 def record(cls, rec_path) -> 'MessageSegment':
     return MessageSegment.record(
         f'file:///{path.join(cls.record_dir, rec_path)}')
예제 #3
0
 def record(cls, rec_path) -> 'MessageSegment':
     return MessageSegment.record(path.join(cls.record_dir, rec_path))