sendMessageToWhatsApp method

Future sendMessageToWhatsApp({
  1. required String message,
  2. String? phoneNumber,
})

Send text message to Telegram method. The method required a message string.

Besides, you can give the phone number of the people you want to send to phoneNumber property (Android only)

Working on: Android and iOS platforms.

Implementation

Future<dynamic> sendMessageToWhatsApp({
  required String message,
  String? phoneNumber,
}) async {
  return _channel.invokeMethod(
    'sendMessageWhatsApp',
    <String, dynamic>{
      'message': message,
      'phoneNumber': phoneNumber,
    },
  );
}