Skip to content

Instantly share code, notes, and snippets.

@leifermendez
Created March 4, 2024 18:05
Show Gist options
  • Select an option

  • Save leifermendez/cae0b18920064f6de1d3e5d8492d6285 to your computer and use it in GitHub Desktop.

Select an option

Save leifermendez/cae0b18920064f6de1d3e5d8492d6285 to your computer and use it in GitHub Desktop.
typing.ts
const typing = async function (ctx: any, provider: any) {
if (provider && provider?.vendor && provider.vendor?.sendPresenceUpdate) {
const id = ctx.key.remoteJid
await provider.vendor.sendPresenceUpdate('composing', id)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment