shareToTelegram method

Future<String> shareToTelegram(
  1. String message,
  2. String? filePath
)

Shares a message and optional file to Telegram on Android.

message The text message to share. filePath Optional path to an image or video file to share.

Returns a String indicating the result of the sharing operation.

Implementation

Future<String> shareToTelegram(String message, String? filePath) {
  return EasySocialSharePlatform.instance.shareToTelegramAndroid(
    message,
    filePath,
  );
}