From 8530c80f9088f2c52c264f1d980b102909e47e3e Mon Sep 17 00:00:00 2001 From: Aldino Kemal Date: Sat, 3 Dec 2022 23:59:48 +0700 Subject: [PATCH] feat: update docs --- readme.md | 3 ++- src/pkg/whatsapp/whatsapp.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 46e9524..367ff35 100644 --- a/readme.md +++ b/readme.md @@ -107,7 +107,8 @@ API using [openapi-generator](https://openapi-generator.tech/#try) | ✅ | Send Video | POST | /send/video | | ✅ | Send Contact | POST | /send/contact | | ✅ | Send Link | POST | /send/link | -| ✅ | Revoke Messave | POST | /message/:message_id/revoke | +| ✅ | Send Location | POST | /send/location | +| ✅ | Revoke Message | POST | /message/:message_id/revoke | ``` ✅ = Available diff --git a/src/pkg/whatsapp/whatsapp.go b/src/pkg/whatsapp/whatsapp.go index f0f2213..ad1f0a8 100644 --- a/src/pkg/whatsapp/whatsapp.go +++ b/src/pkg/whatsapp/whatsapp.go @@ -240,7 +240,7 @@ func handler(rawEvt interface{}) { } case *events.HistorySync: id := atomic.AddInt32(&historySyncID, 1) - fileName := fmt.Sprintf("%s/history-%d-%d.json", config.PathStorages, startupTime, id) + fileName := fmt.Sprintf("%s/history-%d-%s-%d-%s.json", config.PathStorages, startupTime, cli.Store.ID.String(), id, evt.Data.SyncType.String()) file, err := os.OpenFile(fileName, os.O_WRONLY|os.O_CREATE, 0600) if err != nil { log.Errorf("Failed to open file to write history sync: %v", err)