Commit 4185d4a
committed
feat: sync SDK with API docs - add 9 new methods, update 5 existing
New methods (+ async variants):
- account.getStateInstanceHistory(count)
- account.updateApiToken()
- serviceMethods.getChats(count)
- groups.updateGroupSettings(groupId, allowParticipantsEditGroupSettings, allowParticipantsSendMessages)
- journals.lastIncomingCalls(minutes)
- journals.lastOutgoingCalls(minutes)
- queues.getMessagesCount()
- queues.getWebhooksCount()
- queues.clearWebhooksQueue()
Updated signatures (backward compatible):
- sending.sendMessage: add typePreview, customPreview
- sending.forwardMessages: add typingTime
- serviceMethods.checkWhatsapp: add chatId (preferred), force; phoneNumber -> Optional
- serviceMethods.getContacts: add group, count
- receiving.receiveNotification: add receiveTimeout
Examples: add 8 new files, update 6 existing
README/docs: add new methods and examples to both tables1 parent 42d3daf commit 4185d4a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments