@@ -43,43 +43,43 @@ def account_methods(self) -> typing.List:
4343 return [
4444 api .account .getSettingsAsync (),
4545 api .account .getWaSettingsAsync (),
46- api .account .setSettingsAsync ({}),
46+ api .account .setSettingsAsync ({"key" : "value" }),
4747 api .account .getStateInstanceAsync (),
4848 api .account .rebootAsync (),
4949 api .account .logoutAsync (),
5050 api .account .qrAsync (),
5151 api .account .setProfilePictureAsync (path ),
52- api .account .getAuthorizationCodeAsync (0 )
52+ api .account .getAuthorizationCodeAsync (12345678 )
5353 ]
5454
5555 def group_methods (self ) -> typing .List :
5656 return [
57- api .groups .createGroupAsync ("" , []),
58- api .groups .updateGroupNameAsync ("" ),
59- api .groups .getGroupDataAsync ("" ),
60- api .groups .removeGroupParticipantAsync ("" , "" ),
61- api .groups .addGroupParticipantAsync ("" , "" ),
62- api .groups .setGroupAdminAsync ("" , "" ),
63- api .groups .removeAdminAsync ("" , "" ),
64- api .groups .setGroupPictureAsync ("" , "" ),
65- api .groups .leaveGroupAsync ("" )
57+ api .groups .createGroupAsync ("GroupName " , ["1234567890@c.us" ]),
58+ api .groups .updateGroupNameAsync ("group_id" , "NewGroupName " ),
59+ api .groups .getGroupDataAsync ("group_id " ),
60+ api .groups .removeGroupParticipantAsync ("group_id " , "1234567890@c.us " ),
61+ api .groups .addGroupParticipantAsync ("group_id " , "1234567890@c.us " ),
62+ api .groups .setGroupAdminAsync ("group_id " , "1234567890@c.us " ),
63+ api .groups .removeAdminAsync ("group_id " , "1234567890@c.us " ),
64+ api .groups .setGroupPictureAsync ("group_id " , path ),
65+ api .groups .leaveGroupAsync ("group_id " )
6666 ]
6767
6868 def status_methods (self ) -> typing .List :
6969 return [
70- api .statuses .sendTextStatusAsync ("" ),
71- api .statuses .sendVoiceStatusAsync ("" , "" ),
72- api .statuses .sendMediaStatusAsync ("" , "" ),
73- api .statuses .deleteStatusAsync ("" ),
74- api .statuses .getStatusStatisticAsync ("" ),
70+ api .statuses .sendTextStatusAsync ("Status text " ),
71+ api .statuses .sendVoiceStatusAsync ("status_id " , path ),
72+ api .statuses .sendMediaStatusAsync ("status_id " , path ),
73+ api .statuses .deleteStatusAsync ("status_id " ),
74+ api .statuses .getStatusStatisticAsync ("status_id " ),
7575 api .statuses .getIncomingStatusesAsync (),
7676 api .statuses .getOutgoingStatusesAsync ()
7777 ]
7878
7979 def log_methods (self ) -> typing .List :
8080 return [
81- api .journals .getChatHistoryAsync ("" ),
82- api .journals .getMessageAsync ("" , "" ),
81+ api .journals .getChatHistoryAsync ("1234567890@c.us " ),
82+ api .journals .getMessageAsync ("chat_id " , "message_id " ),
8383 api .journals .lastIncomingMessagesAsync (),
8484 api .journals .lastOutgoingMessagesAsync ()
8585 ]
@@ -91,36 +91,39 @@ def queue_methods(self) -> typing.List:
9191 ]
9292
9393 def read_mark_methods (self ) -> typing .List :
94- return [api .marking .readChatAsync ("" )]
94+ return [api .marking .readChatAsync ("1234567890@c.us " )]
9595
9696 def receiving_methods (self ) -> typing .List :
9797 return [
9898 api .receiving .receiveNotificationAsync (),
99- api .receiving .deleteNotificationAsync (0 ),
100- api .receiving .downloadFileAsync ("" , "" )
99+ api .receiving .deleteNotificationAsync (123 ),
100+ api .receiving .downloadFileAsync ("file_id " , "path/to/save " )
101101 ]
102102
103103 def sending_methods (self ) -> typing .List :
104104 return [
105- api .sending .sendMessageAsync ("" , "" ),
106- api .sending .sendFileByUploadAsync ("" , "" ),
107- api .sending .sendFileByUrlAsync ("" , "" , "" ),
108- api .sending .uploadFileAsync ("image_path" ),
109- api .sending .sendLocationAsync ("" , 0.0 , 0.0 ),
110- api .sending .sendContactAsync ("" , {}),
111- api .sending .sendPollAsync ("" , "" , [])
105+ api .sending .sendMessageAsync ("1234567890@c.us" , "Hello" ),
106+ api .sending .sendFileByUploadAsync ("1234567890@c.us" , path ),
107+ api .sending .sendFileByUrlAsync ("1234567890@c.us" , "https://example.com/file.jpg" , "file.jpg" ),
108+ api .sending .uploadFileAsync (path ),
109+ api .sending .sendLocationAsync ("1234567890@c.us" , 40.7128 , - 74.0060 ),
110+ api .sending .sendContactAsync ("1234567890@c.us" , {
111+ "name" : {"firstName" : "John" , "lastName" : "Doe" },
112+ "phone" : "1234567890"
113+ }),
114+ api .sending .sendPollAsync ("1234567890@c.us" , "Question?" , ["Option1" , "Option2" ])
112115 ]
113116
114117 def service_methods (self ) -> typing .List :
115118 return [
116- api .serviceMethods .checkWhatsappAsync (0 ),
117- api .serviceMethods .getAvatarAsync ("" ),
119+ api .serviceMethods .checkWhatsappAsync (1234567890 ),
120+ api .serviceMethods .getAvatarAsync ("1234567890@c.us " ),
118121 api .serviceMethods .getContactsAsync (),
119- api .serviceMethods .getContactInfoAsync ("" ),
120- api .serviceMethods .deleteMessageAsync ("" , "" ),
121- api .serviceMethods .archiveChatAsync ("" ),
122- api .serviceMethods .unarchiveChatAsync ("" ),
123- api .serviceMethods .setDisappearingChatAsync ("" )
122+ api .serviceMethods .getContactInfoAsync ("1234567890@c.us " ),
123+ api .serviceMethods .deleteMessageAsync ("chat_id " , "message_id " ),
124+ api .serviceMethods .archiveChatAsync ("1234567890@c.us " ),
125+ api .serviceMethods .unarchiveChatAsync ("1234567890@c.us " ),
126+ api .serviceMethods .setDisappearingChatAsync ("1234567890@c.us" , 3600 )
124127 ]
125128
126129if __name__ == "__main__" :
0 commit comments