Skip to content

Ver 0.2.6

Choose a tag to compare

@xiaoyanu xiaoyanu released this 08 Sep 06:39
· 4 commits to main since this release

新增

  • 同步 Bee SDK 最新 API:
    • 98:艾特指定用户
    • 99:艾特全体成员
    • 100:生成聊天框输入指令
    • 101:生成点击后直接发送的指令
    • 103:判断消息是否为引用回复
    • 104:获取被引用消息的原内容
  • RobotContext 和 BeeAPI 均新增对应方法:
    • At
    • AtEveryone
    • InlineCommandInputText
    • InlineCommand
    • IsQuotedMessage
    • QuotedMessageContent
  • OpcodeNames 增加 98、99、100、101、103、104 的操作码说明。
  • ParseMention 同时兼容新版和旧版艾特格式。

变更

  • At、AtEveryone、InlineCommand、InlineCommandInputText 不再使用本地字符串拼接,统一改为调用 Bee API。
  • API 文档和开发指南同步更新至 1~104 中已定义的操作码。
  • 操作码 102 未在最新易语言 SDK 中定义,因此 Go SDK 不提供该操作码。

兼容性说明

旧版无上下文的包级辅助函数已移除。请使用当前回调上下文创建的 BeeAPI 调用:

at, _ := bee.At(userID)
everyone, _ := bee.AtEveryone()
input, _ := bee.InlineCommandInputText("帮助", "/help")
send, _ := bee.InlineCommand("发送", "/send")