tawn33y/whatsapp-cloud-api

Cleaner API

Closed this issue · 0 comments

  • Show full Typescript definition for function arguments on hover: i.e.
// instead of:
sendText(options: TextMessageOptions)
// show:
sendText(to: string, text: string)
  • Remove unnecessary boilerplate & remodel functions into a more friendly format, e.g.
// instead of:
sendMedia({ to: 'xx', type: 'image', link: 'https://...' })
// use:
sendImage('xx', 'https://...')
  • Add API reference