mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-25 17:35:40 +00:00
Use Conversation instead of ExtendedTextMessage (whatsapp)
This commit is contained in:
parent
5356b3856a
commit
21c4e56d16
@ -318,17 +318,21 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var message proto.Message
|
|
||||||
|
|
||||||
text := msg.Username + msg.Text
|
text := msg.Username + msg.Text
|
||||||
|
|
||||||
|
var message proto.Message
|
||||||
|
|
||||||
|
message.Conversation = &text
|
||||||
|
|
||||||
|
/*
|
||||||
message.ExtendedTextMessage = &proto.ExtendedTextMessage{
|
message.ExtendedTextMessage = &proto.ExtendedTextMessage{
|
||||||
Text: &text,
|
Text: &text,
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
b.Log.Debugf("=> Sending %#v", msg)
|
|
||||||
|
|
||||||
ID := whatsmeow.GenerateMessageID()
|
ID := whatsmeow.GenerateMessageID()
|
||||||
|
b.Log.Debugf("=> Sending %#v to %#v with ID %s", message, groupJID, ID)
|
||||||
|
|
||||||
_, err := b.wc.SendMessage(groupJID, ID, &message)
|
_, err := b.wc.SendMessage(groupJID, ID, &message)
|
||||||
|
|
||||||
return ID, err
|
return ID, err
|
||||||
|
Loading…
Reference in New Issue
Block a user