sendTextMessage method

  1. @override
Future<void> sendTextMessage({
  1. required String text,
  2. required String chatId,
})

Sends a text message to a chat.

text: The text message to send. chatId: The ID of the chat where the message will be sent.

Implementation

@override
Future<void> sendTextMessage({
  required String text,
  required String chatId,
}) =>
    _sendMessage(
      chatId,
      {
        'text': text,
      },
    );