Skip to main content

sendMessageToGroupChat

talawa-apiDocs


talawa-api / resolvers/Mutation/sendMessageToGroupChat / sendMessageToGroupChat

Variable: sendMessageToGroupChat

> const sendMessageToGroupChat: MutationResolvers["sendMessageToGroupChat"]

This function enables to send message to group chat.

Param

parent of current request

Param

payload provided with the request

Param

context of entire application

Remarks

The following checks are done:

  1. If the group chat exists.
  2. If the user exists
  3. If the group chat contains the user.

Defined in

src/resolvers/Mutation/sendMessageToGroupChat.ts:20