sendMessageToTelegram method

Future sendMessageToTelegram({
  1. required String message,
})

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

Working on: Android and iOS platforms.

Implementation

Future<dynamic> sendMessageToTelegram({
  required String message,
}) async {
  return _channel.invokeMethod(
    'sendMessageTelegram',
    <String, dynamic>{
      'message': message,
    },
  );
}