WhatsApp.version()
Retrieves the semantically formatted SDK version.
Example:
Get the SDK version:
import WhatsApp from 'whatsapp';
const senderNumber = 12345678901;
const wa = new WhatsApp( senderNumber );
const sdk_version = wa.version();
Arguments
Void
Returns
String — version string formatted MAJOR.MINOR.PATCH-LABELS. Labels are optional.