puppet-xp icon indicating copy to clipboard operation
puppet-xp copied to clipboard

经过测试和查看源码,发现,只支持转发文本

Open azbh111 opened this issue 3 years ago • 0 comments

puppet-xp.ts

  override async messageForward (
    conversationId: string,
    messageId: string,
  ): Promise<void> {
    log.verbose('PuppetXp', 'messageForward(%s, %s)',
      conversationId,
      messageId,
    )
    const curMessage = this.messageStore[messageId]
    if (curMessage?.type === PUPPET.types.Message.Text) {
      await this.messageSendText(conversationId, curMessage.text || '')
    } else {
      PUPPET.throwUnsupportedError(conversationId, messageId)
    }
  }

azbh111 avatar Jan 05 '22 06:01 azbh111