dimaskiddo/go-whatsapp-multidevice-rest

Update latest whatsmeow?

Closed this issue · 2 comments

Latest whatsmeow required golang 1.19, any updates?

Ad it would be great to actualize code for the new whatsmeow version

go build -o go-whatsapp-multidevice-rest/cmd/main/__debug_bin -gcflags all=-N -l .

github.com/dimaskiddo/go-whatsapp-multidevice-rest/pkg/whatsapp

../../pkg/whatsapp/whatsapp.go:332:60: cannot use msgId (variable of type string) as type *"go.mau.fi/whatsmeow/binary/proto".Message in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:332:67: cannot use msgContent (variable of type *"go.mau.fi/whatsmeow/binary/proto".Message) as type whatsmeow.SendRequestExtra in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:374:60: cannot use msgId (variable of type string) as type *"go.mau.fi/whatsmeow/binary/proto".Message in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:374:67: cannot use msgContent (variable of type *"go.mau.fi/whatsmeow/binary/proto".Message) as type whatsmeow.SendRequestExtra in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:429:60: cannot use msgId (variable of type string) as type *"go.mau.fi/whatsmeow/binary/proto".Message in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:429:67: cannot use msgContent (variable of type *"go.mau.fi/whatsmeow/binary/proto".Message) as type whatsmeow.SendRequestExtra in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:561:60: cannot use msgId (variable of type string) as type *"go.mau.fi/whatsmeow/binary/proto".Message in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:561:67: cannot use msgContent (variable of type *"go.mau.fi/whatsmeow/binary/proto".Message) as type whatsmeow.SendRequestExtra in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:614:60: cannot use msgId (variable of type string) as type *"go.mau.fi/whatsmeow/binary/proto".Message in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:614:67: cannot use msgContent (variable of type *"go.mau.fi/whatsmeow/binary/proto".Message) as type whatsmeow.SendRequestExtra in argument to WhatsAppClient[jid].SendMessage
../../pkg/whatsapp/whatsapp.go:614:67: too many errors (exit status 2)

Sorry for my inactivity and the late response, too much to do in real life 🥂
@Diden05 @agrogov It should be done at release v1.5.0 with Commit ID 32a6540