feat: bot.call 支持 playMedia——拨打并接通后自动播放媒体 - #127
Merged
Conversation
Member
Author
|
cursor review |
hcfw007
force-pushed
the
feat/media-ws-contract
branch
from
August 26, 2026 04:04
30e4fc0 to
254c4c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
配套 juzibot/wechaty-grpc#78 / wechaty-puppet#115 / wechaty-puppet-service#102。设计文档 §8:https://juzihudong.feishu.cn/docx/N5nVd5B7Bo2vYtxlQD3cU83enKc
改动
bot.call(contacts, options)扩展playMedia{ file?, hangupOnFinish?, hangupDelayMs? }:未传时原 callInvite 路径一字不动;传入时校验(Video 显式传入抛错;file 空且未 hangupOnFinish 抛错)后走 puppet.callInviteWithMedia__incubateOutgoingCall(双下划线约定,不泄漏公共接口),两路径共用验证
build/dist 0 错;lint 四段全过;tap 32/33(唯一失败 io.spec.ts 为既存环境性失败,干净树复跑同样失败)。
注:contact.call() 的 1v1 语法糖未扩散 playMedia(独立内联类型),下游需要时再补。