Skip to content

Interface: AssistantApi ​

YapYap's assistant bar beneath the open chat (ADR 0013). Needs assistant:bar. The extension only offers text: YapYap puts a suggestion in the message box, or sends it, only when the user clicks.

Properties ​

offer ​

readonly offer: (offer) => Promise<void>

Replaces what the bar shows for this extension.

Parameters ​

offer ​

AssistantOffer

Returns ​

Promise<void>


onRequest ​

readonly onRequest: (handler) => void

Runs handler for each request the user makes in the bar.

Parameters ​

handler ​

(request) => void | Promise<void>

Returns ​

void

Released under the MIT License. Development supported by Ensita. YapYap is unofficial and not affiliated with WhatsApp or Meta.