Check for Conversation on receiving messages (whatsapp)

This commit is contained in:
Wim
2022-03-13 18:48:30 +01:00
parent 21c4e56d16
commit 4da1444ffc
2 changed files with 29 additions and 26 deletions

View File

@@ -324,14 +324,9 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
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)
b.Log.Debugf("=> Sending %#v", message)
_, err := b.wc.SendMessage(groupJID, ID, &message)