Function Image

  • 生成图片消息格式

    Parameters

    • imageId: null | string = null

      图片的imageId,群图片与好友图片格式不同。不为空时将忽略url属性

    • url: null | string = null

      图片的URL,发送时可作网络图片的链接;接收时为腾讯图片服务器的链接,可用于图片下载

    • path: null | string = null

      图片的路径,发送本地图片,相对路径于 data/net.mamoe.mirai-api-http/images

    • base64: null | string = null

      图片的 Base64 编码

    Returns MessageType.Image

Generated using TypeDoc