Skip to main content

sendMessageToDirectChat method

[Future<[void>]] sendMessageToDirectChat(

  1. [[String] chatId, ]
  2. [[String] messageContent]

)

Sends a message to a direct chat.

params:

  • chatId: The ID of the chat where the message will be sent.
  • messageContent: The content of the message to be sent.

returns: None

Implementation

Future<void> sendMessageToDirectChat(
String chatId,
String messageContent,
) async
  1. talawa
  2. chat_service
  3. ChatService
  4. sendMessageToDirectChat method
ChatService class