Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help starting #47

Open
gushome7 opened this issue Nov 29, 2018 · 0 comments
Open

help starting #47

gushome7 opened this issue Nov 29, 2018 · 0 comments

Comments

@gushome7
Copy link

Hi!
I'm trying to understand how your API works. I think I'm doing something wrong.

IE trying to find a contact:

window.API.findContactId('12054524874');
api.js:265 Uncaught TypeError: x.__x_id.match is not a function
at Store.Contact.models.forEach.x (api.js:265)
at Array.forEach ()
at Object.findContactId (api.js:264)
at :1:12

IE when running example from issue 39
chat = window.Store.Chat.add({id:window.Store.Chat.active()});
b = chat.createMessageFromText("/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=");
b.type = "location";
b.lat = 0;
b.lng = 0;
chat.addAndSendMsg(b);
VM241:2 Uncaught TypeError: chat.createMessageFromText is not a function
at :2:11

What I'm missing?
And some questions: a) How to select a contact to send a message; b) how to send an embebed image?

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant