Hello guys can you help me to get the online presence of unsaved contacts just like the app WhatsLog does. I have tried to reverse-engineer that app and I came to know that it uses a rest api. Can anyone of you please suggest me what is the underlying technology behind that rest-api?? I want this for my data-science project..
Someone please help me...
@Rhymen @AlmogBaku
It is really easy
This App uses his own API to track users' availability. and we can do that like the following :
errorText := ""
sessionID := SessionID.String()
handler, ok := wa.Connections[sessionID]
if !ok {
log.Infof("ErrorStatus %v", ok )
return
}
phoneNumber := "[email protected]"
value, err := handler.Wac.SubscribePresence(phoneNumber)
if err != nil {
errorText = err.Error()
log.Infof("ErrorStatus %v", errorText )
return
}
response := <-value
var resp map[string]interface{}
if err = json.Unmarshal([]byte(response), &resp); err != nil {
errorText = err.Error()
log.Infof("ErrorStatus %v", errorText )
return
}
log.Infof("Online Status %v", resp)
@beshoo but will it be able to track non-chat accounts??
It can track any WhatsApp number
On Mon, 27 Jul 2020, 11:13 am Manjit Pardeshi, notifications@github.com
wrote:
@beshoo https://github.com/beshoo but will it be able to track non-chat
accounts??—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/416#issuecomment-664191588,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDLT27OS3DYLURR3OHZFDDR5UZKPANCNFSM4PEMGGXQ
.
Can yo please give me the complete code to just copy and paste please? I have ZERO experiance with go-lang....
You have to learn go.
On Mon, 27 Jul 2020, 11:16 am Manjit Pardeshi, notifications@github.com
wrote:
Can yo please give me the complete code to just copy and paste please? I
have ZERO experiance with go-lang....—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/416#issuecomment-664193007,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDLT26NLVSFFV4NNTMNYVDR5UZVZANCNFSM4PEMGGXQ
.
@beshoo any solution in javascript
@beshoo any solution in javascript
This is a go lib, but there is a nodejs version. Are you interested in?
Yes
Thanks & regards
RIZWAN AHMAD
On Fri 11 Sep, 2020, 6:08 PM beshoo, notifications@github.com wrote:
@beshoo https://github.com/beshoo any solution in javascript
This is a go lib, but there is a nodejs version. Are you interested in?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/416#issuecomment-691069544,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHC2EZAPEXLFPDLTQSTT5Z3SFIK37ANCNFSM4PEMGGXQ
.
--
*Disclaimer:Â *
Messages from 'knit.ac.in http://knit.ac.in' mail server
and any associated files may contain information that is confidential,
subject to copyright or contains proprietary information. If you are not
the intended addressee you are hereby notified that any dissemination,
copying or distribution of these messages, or files associated with these
messages is prohibited. If you have received the message in error, please
notify us by replying to the concerned message and deleting it from your
computer. Please also scan the message to verify that it is virus free.
Thank you for your time.
This email is governed by the Disclaimer Terms
of KNIT.
@rizwansoaib then you can go for this repo it is in javascript. But it doesn't seem to get the presence of unsaved contacts...
Most helpful comment
It is really easy
This App uses his own API to track users' availability. and we can do that like the following :