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
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,6 +298,18 @@ asyncio.run(main())
298
298
| Example of sending interactive buttons asynchronously with a reply |[SendInteractiveButtonsReplyAsync.py](../examples/async/sending/sendInteractiveButtonsReplyAsync.py)|
299
299
| Example of sending a notification about typing or recording audio |[SendTyping.py](../examples/sync/sendTyping.py)|
300
300
| Example of sending a notification about typing or recording audio asynchronously |[SendTypingAsync.py](../examples/async/sendTypingAsync.py)|
301
+
| Example of account methods (state history, token update) |[accountMethods.py](./examples/sync/accountMethods.py)|
302
+
| Example of account methods asynchronously |[accountMethodsAsync.py](./examples/async/accountMethodsAsync.py)|
303
+
| Example of getting last incoming and outgoing calls |[lastCalls.py](./examples/sync/lastCalls.py)|
304
+
| Example of getting last calls asynchronously |[lastCallsAsync.py](./examples/async/lastCallsAsync.py)|
305
+
| Example of sending a message with link preview options |[sendMessageWithPreview.py](./examples/sync/sending/sendMessageWithPreview.py)|
306
+
| Example of sending a message with link preview options asynchronously |[sendMessageWithPreviewAsync.py](./examples/async/sending/sendMessageWithPreviewAsync.py)|
307
+
| Example of queues methods (counts, clear webhooks queue) |[queuesMethods.py](./examples/sync/queuesMethods.py)|
308
+
| Example of queues methods asynchronously |[queuesMethodsAsync.py](./examples/async/queuesMethodsAsync.py)|
309
+
| Example of groups methods (update settings) |[groupsMethods.py](./examples/sync/groupsMethods.py)|
310
+
| Example of groups methods asynchronously |[groupsMethodsAsync.py](./examples/async/groupsMethodsAsync.py)|
311
+
| Example of service methods (getChats, checkWhatsapp, getContacts) |[serviceMethods.py](./examples/sync/serviceMethods.py)|
312
+
| Example of service methods asynchronously |[serviceMethodsAsync.py](./examples/async/serviceMethodsAsync.py)|
301
313
302
314
## The full list of the library methods
303
315
@@ -313,6 +325,8 @@ asyncio.run(main())
313
325
|`account.qr`| The method is designed to get a QR code |[QR](https://green-api.com/en/docs/api/account/QR/)|
314
326
|`account.setProfilePicture`| The method is designed to set the avatar of the account |[SetProfilePicture](https://green-api.com/en/docs/api/account/SetProfilePicture/)|
315
327
|`account.getAuthorizationCode`| The method is designed to authorize an instance by phone number |[GetAuthorizationCode](https://green-api.com/en/docs/api/account/GetAuthorizationCode/)|
328
+
|`account.getStateInstanceHistory`| The method returns the history of the instance state changes |[GetStateInstanceHistory](https://green-api.com/en/docs/api/account/GetStateInstanceHistory/)|
329
+
|`account.updateApiToken`| The method generates a new API token for the instance (beta) |[UpdateApiToken](https://green-api.com/en/docs/api/account/UpdateApiToken/)|
316
330
|`contacts.addContact`| The method is used to add a number to contacts |[addContact](https://green-api.com/en/docs/api/contacts/AddContact/)|
317
331
|`contacts.editContact`| The method is used to edit a number in contacts |[editContact](https://green-api.com/en/docs/api/contacts/EditContact/)|
318
332
|`contacts.deleteContact`| The method is used to remove a number from contacts |[deleteContact](https://green-api.com/en/docs/api/contacts/DeleteContact/)|
@@ -326,6 +340,7 @@ asyncio.run(main())
326
340
|`groups.removeAdmin`| The method deprives the participant of group chat administration rights |[RemoveAdmin](https://green-api.com/en/docs/api/groups/RemoveAdmin/)|
327
341
|`groups.setGroupPicture`| The method sets the avatar of the group |[SetGroupPicture](https://green-api.com/en/docs/api/groups/SetGroupPicture/)|
328
342
|`groups.leaveGroup`| The method logs the user of the current account out of the group chat |[LeaveGroup](https://green-api.com/en/docs/api/groups/LeaveGroup/)|
343
+
|`groups.updateGroupSettings`| The method changes the group settings (beta) |[UpdateGroupSettings](https://green-api.com/en/docs/api/groups/UpdateGroupSettings/)|
329
344
|`statuses.sendTextStatus`| The method is aimed for sending a text status |[SendTextStatus](https://green-api.com/en/docs/api/statuses/SendTextStatus/)|
330
345
|`statuses.sendVoiceStatus`| The method is aimed for sending a voice status |[SendVoiceStatus](https://green-api.com/en/docs/api/statuses/SendVoiceStatus/)|
331
346
|`statuses.sendMediaStatus`| The method is aimed for sending a pictures or video status |[SendMediaStatus](https://green-api.com/en/docs/api/statuses/SendMediaStatus/)|
@@ -337,8 +352,13 @@ asyncio.run(main())
337
352
|`journals.getMessage`| The method returns a chat message |[GetMessage](https://green-api.com/en/docs/api/journals/GetMessage/)|
338
353
|`journals.lastIncomingMessages`| The method returns the most recent incoming messages of the account |[LastIncomingMessages](https://green-api.com/en/docs/api/journals/LastIncomingMessages/)|
339
354
|`journals.lastOutgoingMessages`| The method returns the last sent messages of the account |[LastOutgoingMessages](https://green-api.com/en/docs/api/journals/LastOutgoingMessages/)|
355
+
|`journals.lastIncomingCalls`| The method returns the last incoming calls of the account (beta) |[LastIncomingCalls](https://green-api.com/en/docs/api/journals/LastIncomingCalls/)|
356
+
|`journals.lastOutgoingCalls`| The method returns the last outgoing calls of the account (beta) |[LastOutgoingCalls](https://green-api.com/en/docs/api/journals/LastOutgoingCalls/)|
340
357
|`queues.showMessagesQueue`| The method is designed to get the list of messages that are in the queue to be sent |[ShowMessagesQueue](https://green-api.com/en/docs/api/queues/ShowMessagesQueue/)|
341
358
|`queues.clearMessagesQueue`| The method is designed to clear the queue of messages to be sent |[ClearMessagesQueue](https://green-api.com/en/docs/api/queues/ClearMessagesQueue/)|
359
+
|`queues.getMessagesCount`| The method returns the number of messages in the outgoing queue |[GetMessagesCount](https://green-api.com/en/docs/api/queues/GetMessagesCount/)|
360
+
|`queues.getWebhooksCount`| The method returns the number of notifications in the incoming webhooks queue |[GetWebhooksCount](https://green-api.com/en/docs/api/queues/GetWebhooksCount/)|
361
+
|`queues.clearWebhooksQueue`| The method clears the incoming webhooks queue |[ClearWebhooksQueue](https://green-api.com/en/docs/api/queues/ClearWebhooksQueue/)|
342
362
|`marking.readChat`| The method is designed to mark chat messages as read |[ReadChat](https://green-api.com/en/docs/api/marks/ReadChat/)|
343
363
|`receiving.receiveNotification`| The method is designed to receive a single incoming notification from the notification queue |[ReceiveNotification](https://green-api.com/en/docs/api/receiving/technology-http-api/ReceiveNotification/)|
344
364
|`receiving.deleteNotification`| The method is designed to remove an incoming notification from the notification queue |[DeleteNotification](https://green-api.com/en/docs/api/receiving/technology-http-api/DeleteNotification/)|
@@ -362,7 +382,8 @@ asyncio.run(main())
362
382
|`serviceMethods.archiveChat`| The method archives the chat |[ArchiveChat](https://green-api.com/en/docs/api/service/archiveChat/)|
363
383
|`serviceMethods.unarchiveChat`| The method unarchives the chat |[UnarchiveChat](https://green-api.com/en/docs/api/service/unarchiveChat/)|
364
384
|`serviceMethods.setDisappearingChat`| The method is designed to change the settings of disappearing messages in chats |[SetDisappearingChat](https://green-api.com/en/docs/api/service/SetDisappearingChat/)|
365
-
|`serviceMethods.sendTyping`| The method is intended to send a notification about typing or recording audio in the chat |[SendTyping](https://green-api.com/docs/api/service/SendTyping/)|
385
+
|`serviceMethods.sendTyping`| The method is intended to send a notification about typing or recording audio in the chat |[SendTyping](https://green-api.com/en/docs/api/service/SendTyping/)|
386
+
|`serviceMethods.getChats`| The method returns a list of chats sorted by message activity time |[GetChats](https://green-api.com/en/docs/api/service/GetChats/)|
366
387
|`webhooks.startReceivingNotifications`| The method is designed to start receiving new notifications ||
367
388
|`webhooks.stopReceivingNotifications`| The method is designed to stop receiving new notifications ||
368
389
|`partner.GetInstances`| The method is for getting all the account instances created by the partner. |[GetInstances](https://green-api.com/en/docs/partners/getInstances/)|
0 commit comments