Comments (6)
You're way overthinking things
chatJid = v.Info.Chat
from whatsmeow.
You can send a message (SendMessage) into where the chat (jid) coming from.
Chat evt.Info.Chat
, the Sender evt.Info.Sender
.
Lines 14 to 20 in 01b0547
from whatsmeow.
None of those did not worked:
chatJid = types.NewJID(v.Info.Chat, types.DefaultUserServer)
chatJid = types.NewJID(v.Info.Chat.User, types.DefaultUserServer)
chatJid = types.NewJID(v.Info.Chat.Server, types.DefaultUserServer)
This do not give an error, but also did not send any response to the chat:
chatJid = types.NewJID(v.Info.Chat.User +"@" + v.Info.Chat.Server, types.DefaultUserServer)
(ends up with ID@[email protected])
mycli.WAClient.SendMessage(context.Background(), chatJid, response)
from whatsmeow.
Maybe need new IDE for editing the code that support LSP.
from whatsmeow.
ops, my bad:
chatJid = types.NewJID(v.Info.Chat.User, v.Info.Chat.Server)
this works
but nice to know that there is a simplier solution like you said! Thanks!
from whatsmeow.
ops, my bad:
chatJid = types.NewJID(v.Info.Chat.User, v.Info.Chat.Server)
this worksbut nice to know that there is a simplier solution like you said! Thanks!
Actually, v.Info.Chat
is already types.JID
and doesn't need to be re-created it.
from whatsmeow.
Related Issues (20)
- Connected, but registering device +... ⏳ Waiting for code...XXXX-XXXX HOT 3
- timeout running - Getting Issue While QR Scan Call Open HOT 5
- Not working when setting DeviceProps_HistorySyncConfig HOT 3
- go 12.1 not support window 7 HOT 1
- Client outdated (405) connect failure (client version: 2.2329.9) HOT 1
- Audio VN (PTT) cant play in iOS HOT 4
- List Message not working HOT 6
- Goroutines use a lot of RAM memory after this error HOT 1
- No new message notification on phone if message received in whatsmeow HOT 11
- Re-request media from phone HOT 1
- Questions about database HOT 3
- I have an account with a 6-segment key, how do I use it to log in to WhatsApp?
- Contact name HOT 1
- get account creation date
- Please update Upload documentation HOT 3
- Not sending sync data HOT 4
- [Client WARN] Failed to parse <meta> node in 774CB66BF4BB7D3336: [didn't find required attribute 'target_id'] HOT 1
- Bug send reply message (in receiver not work) HOT 1
- Whats appropiate media type for files like .docx .xlsx, etc? HOT 2
- Sometime Object Message is Empty HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsmeow.