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 notes
The chat list includes avatars.
This method is available in both synchronous and asynchronous implementations
Request
Parameter
Description
The data type of the parameter
Required parameter
Limit
Sets length of the message list. Default 100. With value 0 returns all messages.
String
Page
Page number, starts from 0, 0 by default. Example: 5
Integer
Response
Parameter
Description
The data type of the parameter
Dialogs
Collection of dialogs
DialogCollection
Parameters of the AdditionalChatInfo
Parameter
Description
The data type of the parameter
Image
HTTPS link on avatar or group image
String
ChatId
The unique ID of the chat
String
ChatName
The name of the chat
String
ChatCreator
The Creator of the chat
String
LastMessageTime
Date of last message in chat
DateTime
ChatCreationDate
Date the chat was created
DateTime
AdditionalChatInfo
Additional info about chat
AdditionalChatInfo
Parameters of the AdditionalChatInfo
Parameter
Description
The data type of the parameter
IsGroup
Flag indicating whether information was uploaded by group or by chat
Boolean
Participants
Participants of the dialogue
ParticipantsCollection
GroupInviteLink
Link to the invitation to the group
String
Example
usingSystem;usingChatApi.Core.Connect;usingChatApi.Core.Connect.Interfaces;usingChatApi.Core.Response.Interfaces;usingChatApi.WA.Dialogs;usingChatApi.WA.Dialogs.Requests;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(Сonnect);varrequest=newDialogCollectionRequest{Limit=1};IChatApiResponse<IDialogCollectionResponse?>chatApiResponse=dialogOperations.GetDialogs(request);if(!chatApiResponse.IsSuccess)throwchatApiResponse.Exception!;varresponse=chatApiResponse.GetResult();Console.WriteLine(response?.PrintMembers());}}}