mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-18 03:23:23 +08:00
feat: add WhatsApp QR channel
This commit is contained in:
parent
f8841da76f
commit
c54463843f
29 changed files with 4565 additions and 224 deletions
15
src/channels/whatsapp/whatsapp-bridge.mjs
Normal file
15
src/channels/whatsapp/whatsapp-bridge.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { createTextBridgeStatus, TextHarnessBridge } from '../shared/text-harness-bridge.mjs';
|
||||
|
||||
export const WHATSAPP_DESCRIPTOR = Object.freeze({
|
||||
key: 'whatsapp',
|
||||
label: 'WhatsApp',
|
||||
connectionLabel: ' Web 关联设备',
|
||||
});
|
||||
|
||||
export class WhatsappHarnessBridge extends TextHarnessBridge {
|
||||
constructor(options) {
|
||||
super({ ...options, descriptor: WHATSAPP_DESCRIPTOR });
|
||||
}
|
||||
}
|
||||
|
||||
export { createTextBridgeStatus as createWhatsappBridgeStatus };
|
||||
Loading…
Add table
Add a link
Reference in a new issue