You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
Implementation note
This method is available in both synchronous and asynchronous implementations.
Request
Parameter
Description
The data type of the parameter
Required parameter
GroupId
Unique ID of the group
String
ParticipantPhone
The phone number of the participant being added to the group
String
Only ParticipantPhone is specified
Only ParticipantChatId is specified
ParticipantChatId
Unique ID of the participant to add to the group
String
Only ParticipantChatId is specified
Only ParticipantPhone is specified
Response
Parameter
Description
The data type of the parameter
GroupId
Unique ID of the group
String
IsSuccess
Flag for adding a participant to the group
Boolean
StatusMessage
Status of adding a participant to the group
String
Example
usingSystem;usingChatApi.Core.Connect;usingChatApi.Core.Connect.Interfaces;usingChatApi.Core.Response.Interfaces;usingChatApi.WA.Dialogs;usingChatApi.WA.Dialogs.Operations.Interfaces;usingChatApi.WA.Dialogs.Requests;usingChatApi.WA.Dialogs.Requests.Interfaces;usingChatApi.WA.Dialogs.Responses.Interfaces;usingChatApiClient.Properties;namespaceChatApiClient{internalclassProgram{internalstaticIWhatsAppConnectConnect{get;set;}internalstaticvoidMain(){// put your chat-api's dataConnect=newWhatsAppConnect(WhatsApp_Server,WhatsApp_Instance,WhatsApp_Token);IDialogOperationsoperation=newDialogOperations(Connect);IGroupOperationsgroupOperations=operation.GroupOperations.Value;IGroupParticipantOperationsparticipantOperations=groupOperations.GroupParticipantOperations.Value;IAddGroupParticipantRequestrequest=newAddGroupParticipantRequest{ParticipantPhone="+7(999) 111-11-11"// or ParticipantChatId = "79991111111@c.us"};IChatApiResponse<IAddGroupParticipantResponse?>chatApiResponse=participantOperations.AddParticipant(request);if(!chatApiResponse.IsSuccess)throwchatApiResponse.Exception!;varresponse=chatApiResponse.GetResult();Console.WriteLine(response?.PrintMembers());}}}