Hi, cannot find window.Store object anymore, it seems that Whatsapp Web has been just updated?
Yeah same here..
yes sir , i hope solve this ):
same here....
Yes, wapi_functions.getAllChats() not working.
It gives me:
ReferenceError: Store is not defined
Anyone no idea yet?
They are usign javascript proxys now... so we need find some way to create a handler to this proxy
I think the same as bobaopae, it is runtime loading the Javascript
It is possible to get ConnectionManager:
[Node id="App"]._reactRootContainer.current.child.child.child.child.child.memoizedProps.children[5].props.conn
It is possible to get ChatCollection:
[Node id="App"]._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection
It is possible to get ContactCollection from any chat:
chat.contact.collection
Hey Alfred, thank you for your information - how can I do this in chrome console/ javascript? Not much experienced with react
is there any sollution for this?
We should setup a discord channel for this project, discuss more frantic things like this
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
Facing same issue here.
Getting "ReferenceError: Store is not defined"
Any solution?
alfred and vini give me your email address I want to gift you beer money
any solution?
Chats models are still accessible. All we have to do is select the React node of the chat panel on the left like they said above.

EDIT: THE MASTER BRANCH ALREADY IS WORKING
========
dear alan-albuquerque how to send message?
i can read now but can not send message
@alan-albuquerque your code also reads already read messages. isNewMsg property is no longer defined.
getUnreadMessages funcion needs more fixing than that.
Edit: just change __x_isNewMsg to isNewMsg .
@alan-albuquerque and this dont get all contacts, only get the contacts in cache
@alpires yes, you must use chat[0].collection as @alfred82santa has said above
hi @alpires how can send messages to contact??
hi @sevetseh28 how can send messages to contact??
Thanks @sevetseh28
@victorriba this work for now document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
@alpires can explain how can implement it please?
i make pull request thanks to @alan-albuquerque and
Some solution to get all contacts and not only all chats?
alan-albuquerque sir thanks... now send message also done
@sevetseh28 you're right! I changed my comment with your corrections =)
@alan-albuquerque @sevetseh28 @alfred82santa @Vini85428026 )
ERR
Traceback (most recent call last):
File "./echo.py", line 50, in <module>
for contact in driver.get_unread():
File "WebWhatsapp-Wrapper-master/webwhatsapi/__init__.py", line 321, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications)
File "WebWhatsapp-Wrapper-master/webwhatsapi/wapi_js_wrapper.py", line 28, in __getattr__
wapi_functions = dir(self)
File "WebWhatsapp-Wrapper-master/webwhatsapi/wapi_js_wrapper.py", line 46, in __dir__
self.driver.execute_script(script.read())
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 629, in execute_script
'args': converted_args})['value']
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 314, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: SyntaxError: illegal character
@mafrek you can post your entire getUnreadMessages function body?
Edit wapi.js add function written by @alan-albuquerque
And replace all Store.Chat.models
To
WAPI.getChatModels();
All working... Tested dear
@alan-albuquerque thanks all work now
Thanks, but 99% of the credits must go to @alfred82santa, I'm really impressionate how he discovered where was the new chats collections path haha, really insane dude, thanks
@alan-albuquerque @alfred82santa you know where are node to setPushname and sendSetStatus?
@alfred82santa thanks a lot for the quick answer you saved the day.
Perhaps we could find a way to dynamically find the Store?
I have the feeling it's too hardcoded and going to break again soon:
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.models;
Great job Alan.. I changed as you suggested, everything works fine except sending message to group.
this is my code
for group in driver.contact_get_common_groups("[email protected]"):
print(group.id + " " + group.name)
if group.name=="Testing group":
driver.send_message_to_id(group.id,"test")
some can help me to send imagen to a contact ?? @alan-albuquerque @alfred82santa @sevetseh28
Thank you
this.obj.ExecuteScript("Store.Chat.models[0].__x_id='" + array[i] + "@c.us'", new object[0]);
it vb.net
what change i do to work
store command line
it does not work anymore
:-( help me
De antemano gracias por el aporte....Pudieron descargar imagenes ....
How can we send picture and video ?
Before Has a Store. We can forward any picture.
var msg = Store.Msg.models[0]; msg.id.id = arguments[0]; msg.id.remote = arguments[1]; msg.to = arguments[1]; msg.t = Math.ceil(new Date().getTime() / 1000); Store.Msg.send(msg);
Message Model Zero is Picture.
@flavionegrao You are right, it's not a good solution. We must investigate more. I'm thinking about some autodiscovery process. I guess it's not possible to get old Store object. But we could recreate it.
On the other hand,I think we must refactor all js code, allowing to call functions in async mode, avoiding process locks. Also, new code should create a master object in order to work as proxy with python code. It should to make it easy to create new methods (I'm thinking how to send media files).
i have same issue,
webwhatsapi.wapi_js_wrapper.JsException: Error in function getUnreadMessages (ReferenceError: Store is not defined). Command: return WAPI.getUnreadMessages(false,false, arguments[0])
any one knew where is the Wap object ?
or any method to check number uses whatsapp or not
How can I get the group id?.... Help
@ederalbino use contact.chat.id
@desertsun16 what is arguments[0]?
@desertsun16 check this -> https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/223
Need to change the chat collection to above. The actual line returns empty array of chats when the user is seaching something in whats web:
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedProps.chat.collection
@eduardobento check last merge i made in https://github.com/mukulhase/WebWhatsapp-Wrapper/pull/223
I got to send a message to a new number.
First, you have to have a method like that at the driver
def create_chat_by_number(self, number, mensage):
url = self._URL+"/send?phone="+number
self.driver.get(url)
And then you have to update the javascript:
At my case, there is a method in the driver class
def send_to_phone_number(self, pno, message):
try:
script_path = os.path.dirname(os.path.abspath(__file__))
except NameError:
script_path = os.getcwd()
script = open(os.path.join(script_path, "js_scripts/send_message_to_phone_number.js"), "r").read()
success = self.driver.execute_script(script, pno, message)
return success
And the content from send_message_to_phone_number.js is that one:
var obj = document.querySelector("#main");
var chat = obj[Object.keys(obj)[0]].memoizedProps.children[1].props.chat;
var message = arguments[1];
var temp = {};
temp.contact = chat.__x__formattedTitle;
temp.id = chat.__x_id;
if((temp.id.search(contact)!=-1 || temp.id.search(contact2)!=-1 ) && temp.id.search('g.us')==-1 ){
chat.sendMessage(message);
return true
}
return false;
After that, you call:
driver.create_chat_by_number(phone, message)
driver.send_to_phone_number(phone, message) //this method will call the javascript method
@bobaoapae thanks !!
@karopass - THANKS SO MUCH!
maybe you can explain how find this?
@karopass
var nr = phone number; Store.ProfilePicThumb.find(nr+ '@c.us').then(function(r){ console.log(r)})
How can we do ?
Thanks
@alan-albuquerque
Solved!
Regards
@karopass
window.Store.Presence.find(nr+'@c.us')
How can we do ?
@karopass yes yes... how use this i know... i want to know how you find this for future updates...
I have taken a git pull and did "python setup.py install" however now getting "done is not a function".
Before taking pull, i was getting "ReferenceError: Store is not defined".
Has this fixed in master branch?
Waiting for QR
Bot started
Traceback (most recent call last):
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/wapi_js_wrapper.py", line 102, in __call__
return self.driver.execute_async_script(command)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 650, in execute_async_script
'args': converted_args})['value']
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: TypeError: done is not a function
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "echo.py", line 26, in
for contact in driver.get_unread():
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/__init__.py", line 327, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/wapi_js_wrapper.py", line 106, in __call__
raise JsException("Error in function {0} ({1}). Command: {2}".format(self.function_name, e.msg, command))
webwhatsapi.wapi_js_wrapper.JsException: Error in function getUnreadMessages (TypeError: done is not a function). Command: return WAPI.getUnreadMessages(false,false,false, arguments[0])
That was probably a bad merge. Will fix it.
@mukulhase : Many thanks in advance. Please update here once fixed.
@karopass
Hi, following your answer, I executed the command in node.js and got error saying:"ReferenceError: window is not defined".
how or where should I run it?
thanks
Old Store object autodiscovery: #231
I think we could close this issue...
@mukulhase : I have taken a pull today at 09:50 PM IST and below are the files got changed.
Fast-forward
webwhatsapi/__init__.py | 20 ++++++++++++--------
webwhatsapi/async_driver.py | 13 +++++++------
webwhatsapi/js/wapi.js | 51 +++++++++++++++++++++++++++++++++++++++++++--------
webwhatsapi/objects/message.py | 3 ++-
4 files changed, 64 insertions(+), 23 deletions(-)
Now echo.py is not crashing however not able to read any text nor image message.
What can i do now?
@mukulhase : This program is not able to receive text or images now after whatsapp did some change at their web.whatsapp.com.
Is this working working for anyone else?
Its working fine..
@tapankumar working fine here...
@tarun82888 @bobaoapae --It is not working for me.
Can you please review below of my code and suggest if there is any issue.
This is how i run my program.
python echo.py skskfvo8.xxxxx xxxx
After running my program, web.whatsapp.com open and connected properly in firefox however program is unable to read any message nor moving to next while loop.
Waiting for QR
Bot started
Checking for more messages - Server Number -xxxx
Nothing moves after this.
My Code
~~~
import time
from webwhatsapi import WhatsAPIDriver
from webwhatsapi.objects.message import Message, MediaMessage
import requests
from random import randint
import os
import sys
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
driver = WhatsAPIDriver(
loadstyles=True, profile="/home/mobilnxt/.mozilla/firefox/" + sys.argv[1])
print("Waiting for QR")
driver.wait_for_login()
print("Bot started")
wa_server_number = sys.argv[2]
mediaPath = "/home/mobilnxt/Desktop/webwhatsapi/media/" + wa_server_number
if not os.path.exists(mediaPath):
os.makedirs(mediaPath)
while True:
time.sleep(randint(5, 10))
print('Checking for more messages - Server Number - ' + wa_server_number)
for contact in driver.get_unread():
for message in contact.messages:
if isinstance(message, MediaMessage):
if message.type == "image":
print("Media Message received")
print("Phone:" + message.sender.id +
"|Message Type:" + message.type)
#print("Message Type:" + message.type)
#print("Message Size:" + str(message.size))
#print("Message Mime:" + message.mime)
#print(message.content + ":" + message.filename)
message.save_media(mediaPath)
sender = message.sender.id.split('@')
files = {'wa_media': open(
mediaPath + "/" + message.filename, 'rb')}
messageData = {'wa_number': sender[0],
'wa_message': message.filename,
'wa_type': message.type,
'wa_server_number': wa_server_number}
requests.post(
'https://www.mobilnxt.in/api/wa_receive', files=files, data=messageData, verify=False)
#time.sleep(randint(5, 10))
driver.chat_send_seen(message.chat_id)
else:
print("Message Type:" + message.type + "|Not interested")
driver.chat_send_seen(message.chat_id)
else:
if hasattr(message, 'sender') and hasattr(message, 'content'):
print("Text message received")
print("Phone:" + message.sender.id +
"|Message:" + message.content)
# print("Message Type:" + message.type) #For text message, type=chat
sender = message.sender.id.split('@')
messageData = {'wa_number': sender[0],
'wa_message': message.content,
'wa_type': "text",
'wa_server_number': wa_server_number}
requests.post(
'https://xxxxxxxxxxx/api/wa_receive', data=messageData, verify=False)
#time.sleep(randint(5, 10))
driver.chat_send_seen(message.chat_id)
# contact.chat.send_message(message.safe_content)
~~~
I have this weird thing, when I launch the echo, the whatsApp web looks broken, but if I surf to the web.whatsapp.com regularly it looks as usual

use loadstyle
On Tue, May 29, 2018, 7:04 PM MalkaBar notifications@github.com wrote:
I have this weird thing, when I launch the echo, the whatsApp web looks
broken, but if I surf to the web.whatsapp.com regularly it looks as usual
[image: image]
https://user-images.githubusercontent.com/32748699/40670809-e29f57d4-6372-11e8-869c-16a2ae940179.png—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/217#issuecomment-392833183,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdkDtggsr-DwXpQIg4QC6GqGJjH_CDTks5t3XGMgaJpZM4UNQkX
.
@mhndm Can you please elaborate on how to use loadstyle? I am not sure what it means
driver = WhatsAPIDriver(username="mkhase", loadstyle=True)
On Tue, May 29, 2018, 7:12 PM MalkaBar notifications@github.com wrote:
@mhndm https://github.com/mhndm Can you please elaborate on how to use
loadstyle? I am not sure what it means—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/217#issuecomment-392836406,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdkDt423oxx5RJPM60FU226kHZBa931ks5t3XOFgaJpZM4UNQkX
.
@mhndm I added this but I get this error
raceback (most recent call last):
File "echo.py", line 5, in <module>
driver = WhatsAPIDriver(username="mkhase", loadstyle=True)
TypeError: init() got an unexpected keyword argument 'loadstyle'
sorry with s
loadstyles
On Tue, May 29, 2018, 7:22 PM MalkaBar notifications@github.com wrote:
@mhndm https://github.com/mhndm I added this but I get this error
raceback (most recent call last): File "echo.py", line 5, in
driver = WhatsAPIDriver(username="mkhase", loadstyle=True) TypeError:
init() got an unexpected keyword argument 'loadstyle'—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/217#issuecomment-392839566,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdkDsZQfloVN0YgqTzAJgr82xl5Zsv-ks5t3XXUgaJpZM4UNQkX
.
@mhndm it worked! Thanks! :)
Function Getme not working.. Any one have idea?
I also downloaded the latest build of the repository and still can't pass the missing store error, I tried @karopass' comment but it didn't work...anyone has a solution for this?
webwhatsapi.wapi_js_wrapper.JsException: Error in function getUnreadMessages (ReferenceError: Store is not defined). Command: return WAPI.getUnreadMessages(false,false, arguments[0])
@mhndm In which file do I put @karopass 's code?
@lihisolomon same question here. I tried to add this piece of code in wapi.js, but without success testing echo.py... any suggestion?
Hi all,
Is this line supposed to not work?
for contact in driver.get_unread():
We can't receive or send messages...
@MalkaBar : I am too facing the same issue and waiting @mukulhase to fix it.
After running my script for long time, i get below error.
However whatsapp web opened by echo.py is able to send and received message via firefox.
Waiting for QR
Bot started
Checking for more messages - Server Number -xxxx
Traceback (most recent call last):
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/wapi_js_wrapper.py", line 102, in __call__
return self.driver.execute_async_script(command)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 650, in execute_async_script
'args': converted_args})['value']
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "echo_test.py", line 26, in
for contact in driver.get_unread():
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/__init__.py", line 327, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications)
File "/home/mobilnxt/.pyenv/versions/myvenv/lib/python3.6/site-packages/webwhatsapi-2.0.3-py3.6.egg/webwhatsapi/wapi_js_wrapper.py", line 105, in __call__
raise Exception("Phone not connected to Internet")
Exception: Phone not connected to Internet
@karopass @alfred82santa @alan-albuquerque @tarun82888
After sending 20 - 30 messages
Whatsapp account banned :-(
your phone number is no longer registered on this phone....
how can it be a solution ?
@oltanalkan which browser yoi use?
And also provide your code..
Something wrong in your codes
I am confirming here that Installing from pip works fine. It seems version (2.0.5) available at pip is working fine however master branch code is not.
@MalkaBar : Please install from pip and see if it is working for you too.
pip install webwhatsapi
@tarun82888
Code :
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
Browser chrome
After sending 20 - 30 messages
Whatsapp account banned :-(
your phone number is no longer registered on this phone....
@oltanalkan
querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats.collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
try sir..
also set sleep time per sms
@tarun82888
your code is not working
VM52:1 Uncaught ReferenceError: querySelector is not defined
at
when I add document.
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats.collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
Uncaught TypeError: Cannot read property 'find' of undefined
at
@oltanalkan
set pause delay after each sms send in your own codes
@tarun82888
how seconds , do you have a suggestion ?
3-5-7-8-10-12 I did it but I was banned
@oltanalkan
i set half second only and no issue any
you try with 1 sec.
be sure pause delay per sms ...} not on per batch
@tarun82888
are you recording phone book numbers?
because the code you gave me did not work
my code :
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
@oltanalkan
sir use your own codes..or use latest version
@tarun82888
what's the latest version?
@oltanalkan
use latest version of webwhatsapi
@karopass @alfred82santa @alan-albuquerque @Vini85428026 @tapankumar @MalkaBar @victorriba @tulssinep @mikkelam @mhndm
Do you have any suggestions for not being banned?
--I wait 1-10 seconds for each message
-- each message is different
Account is banned when you send 20-30 messages
what can i do?
Browser : chrome
the code I am using
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
@oltanalkan open new issue, please
too much noise in this one...
@karopass cc @alfred82santa
Again Store fail
window.Store = {}; webpackJsonp([], { "bcihgfbdeb": (x, y, z) => window.Store = z('"bcihgfbdeb"') }, "bcihgfbdeb")
https://imgur.com/0kYHzFr
https://imgur.com/G52QNs5
All code about webpack fail #231
@alfred82santa agreed...
This API needs too many improvements
as get_unread is not working
Why can I call
window.Store = {}; webpackJsonp([], { "bcihgfbdeb": (x, y, z) => window.Store = z('"bcihgfbdeb"') }, "bcihgfbdeb") only once? When I do it again it gets cleared and disappears. Any tips on that?
I get a Error: Permission denied to access property "length", any idea why? when I use the webpackJsonp function in a content script injected to the page. And also I cannot access the #app element _reactRootContainer node, in the console.log function it shows up, but in my javascript content js fine it is inaccessible, any idea why?
it does not work anymore
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });
Store=webpackJsonp([], null, '"ebhdebaagj"').default
Or even better:
!function(){for(var t of document.getElementsByTagName("script"))t.src.indexOf("/app.")>0&&fetch(t.src,{method:"get"}).then(function(t){return t.text().then(function(t){var e=t.indexOf('var a={};t["default"]')-89;window.ZStore=window.webpackJsonp([],null,JSON.stringify(t.substr(e,10))).default})})}();
ZStore contains the Store object.
This is working fine for me.
https://gist.github.com/phpRajat/a6422922efae32914f4dbd1082f3f412
Most helpful comment
document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection.find("[email protected]").then(function(e) { e.sendMessage("Ola") });