(file: str,
              destruct: Optional[bool] = None,
              type: Optional[str] = None,
              cache: Optional[bool] = None,
              proxy: Optional[bool] = None,
              timeout: Optional[int] = None)
return MessageSegment(type_='image',
                              data=_remove_optional({
                                      'file': file,
                                      'type': _optionally_strfy(type),
                                      'cache': _optionally_strfy(cache),
                                      'proxy': _optionally_strfy(proxy),
                                      'timeout': _optionally_strfy(timeout),
                                      'destruct': _optionally_strfy(destruct),
                              }))
图片。
图片。
图片。
def image(file: str,
              destruct: Optional[bool] = None,
              type: Optional[str] = None,
              cache: Optional[bool] = None,
              proxy: Optional[bool] = None,
              timeout: Optional[int] = None) -> 'MessageSegment':
        """图片。"""
        # NOTE: destruct parameter is not part of the onebot v11 std.
        return MessageSegment(type_='image',
                              data=_remove_optional({
                                      'file': file,
                                      'type': _optionally_strfy(type),
                                      'cache': _optionally_strfy(cache),
                                      'proxy': _optionally_strfy(proxy),
                                      'timeout': _optionally_strfy(timeout),
                                      'destruct': _optionally_strfy(destruct),
                              }))
def image ( file : str , destruct : Optional [ bool ] = None , type : Optional [ str ] = None , cache : Optional [ bool ] = None , proxy : Optional [ bool ] = None , timeout : Optional [ int ] = None ) -> 'MessageSegment' : # NOTE: destruct parameter is not part of the onebot v11 std. return MessageSegment ( type_ = 'image' , data = _remove_optional ( { 'file' : file , 'type' : _optionally_strfy ( type ) , 'cache' : _optionally_strfy ( cache ) , 'proxy' : _optionally_strfy ( proxy ) , 'timeout' : _optionally_strfy ( timeout ) , 'destruct' : _optionally_strfy ( destruct ) , } ) )