mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.04k stars 794 forks source link

Get chats which are not contacts #394

Open surgura opened 6 years ago

surgura commented 6 years ago

In the WhatApp app you can chat with people that are not your contacts(you only see their phone number). Use this API I'm able to get chats with contacts through get_all_chats(). Is it possible to get the 'anonymous' chats?

brunosoaresds commented 6 years ago

Just use send_message_to_id function

surgura commented 6 years ago

That is to send messages, correct? But if I already do have such conversations, is it possible to get them through this API?

brunosoaresds commented 6 years ago

If the chat is already opened you can get it from get_all_chats

maxi7587 commented 5 years ago

If you don't want to use send_message_to_id, wich is returning allways False (I mean, it sends the message but returns False), you can use get_chat_from_phone_number and then call send_mesage with the serialized id of the returned chat instance.