summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/whatsapp/whatsapp.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go
index ee18f457..7ee4045f 100644
--- a/bridge/whatsapp/whatsapp.go
+++ b/bridge/whatsapp/whatsapp.go
@@ -318,17 +318,21 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
}
}
- var message proto.Message
-
text := msg.Username + msg.Text
- message.ExtendedTextMessage = &proto.ExtendedTextMessage{
- Text: &text,
- }
+ var message proto.Message
- b.Log.Debugf("=> Sending %#v", msg)
+ message.Conversation = &text
+
+ /*
+ message.ExtendedTextMessage = &proto.ExtendedTextMessage{
+ Text: &text,
+ }
+ */
ID := whatsmeow.GenerateMessageID()
+ b.Log.Debugf("=> Sending %#v to %#v with ID %s", message, groupJID, ID)
+
_, err := b.wc.SendMessage(groupJID, ID, &message)
return ID, err