almogbaku
9 months ago
No known key found for this signature in database
GPG Key ID: 66C92B1C5B475512
1 changed files with
1 additions and
1 deletions
-
src/infrastructure/whatsapp/webhook.go
|
|
|
@ -45,7 +45,7 @@ func createPayload(ctx context.Context, evt *events.Message) (map[string]interfa |
|
|
|
body["from"] = from |
|
|
|
|
|
|
|
from_user, from_group := from, "" |
|
|
|
if strings.Contains(" in ", from) { |
|
|
|
if strings.Contains(from, " in ") { |
|
|
|
from_user = strings.Split(from, " in ")[0] |
|
|
|
from_group = strings.Split(from, " in ")[1] |
|
|
|
} |
|
|
|
|