openTelegramDirectMessage method

Future openTelegramDirectMessage({
  1. required String username,
})

Open a direct message on Telegram app method. The method required a username that you want to send message

Working on: Android and iOS platforms.

Implementation

Future<dynamic> openTelegramDirectMessage({
  required String username,
}) async {
  return _channel.invokeMethod(
    'openTelegramDirectMessage',
    <String, dynamic>{
      'username': username,
    },
  );
}