Browse Source
feat: add message id in webhook (#64)
* feat: add message_id in webhook
* feat: upgrade version
pull/66/head
v4.5.1
Aldino Kemal
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
src/config/settings.go
-
src/pkg/whatsapp/whatsapp.go
|
|
|
@ -6,7 +6,7 @@ import ( |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
|
AppVersion = "v4.5.0" |
|
|
|
AppVersion = "v4.5.1" |
|
|
|
AppPort = "3000" |
|
|
|
AppDebug = false |
|
|
|
AppOs = fmt.Sprintf("AldinoKemal") |
|
|
|
|
|
|
|
@ -267,6 +267,7 @@ func sendAutoReplyWebhook(evt *events.Message) error { |
|
|
|
documentMedia := evt.Message.GetDocumentMessage() |
|
|
|
|
|
|
|
body := map[string]any{ |
|
|
|
"message_id": evt.Info.ID, |
|
|
|
"from": evt.Info.SourceString(), |
|
|
|
"message": evt.Message.GetConversation(), |
|
|
|
"image": imageMedia, |
|
|
|
|