Comments (9)
Plase update to new version
To send a message to a contact (non-group) just type the number
client.sendText('[email protected]', 'Direct message');
On a regular message received do a console.log(message)
to and check the from
property
from sulla.
You can create a conversation with a phone number using the following url: https://web.whatsapp.com/send?phone=34601XXXXXX&text=message&source=&data=
from sulla.
Plase update to new version
To send a message to a contact (non-group) just type the number
client.sendText('[email protected]', 'Direct message');On a regular message received do a
console.log(message)
to and check thefrom
property
THANK YOU FOR EVEVERYTHİNG
from sulla.
Tengo la idea, pero infortunadamente nodejs es algo enredado para programar :-( , no he logrado que una función retorne el resultado de una consulta para que sea enviado al whatsapp de quien pregunta, a la línea que envía el mensaje a whatsapp llega "undefined" pero al sacarlo por console.log ahí si lo muestra. Estoy leyendo y viendo videos tutoriales sobre nodejs para entenderlo y crear funciones, crear bucles, consultas periódicas de tal forma que si en la BD hay un anuncio lo "recoja" y se lo envíe al whatsapp, pero hasta el momento nada que avanzo, muy diferente a php.
from sulla.
please help, i am trying to use this project. where do i put the example code that was pasted in the README.md
i just need a little push to understand how to implement custom code on top of this. i havetried using the index.ts but it fails. i also tried the index.js
const sulla = require('sulla');
sulla.create().then(client => start(client));
function start(client) {
client.onMessage(message => {
if (message.body === 'Hi') {
client.sendText(message.from, '👋 Hello from sulla!');
}
});
}`
from sulla.
please help, i am trying to use this project. where do i put the example code that was pasted in the README.md
i just need a little push to understand how to implement custom code on top of this. i havetried using the index.ts but it fails. i also tried the index.js
const sulla = require('sulla'); sulla.create().then(client => start(client)); function start(client) { client.onMessage(message => { if (message.body === 'Hi') { client.sendText(message.from, '👋 Hello from sulla!'); } }); }`
Create a file, example "index.js" copy the code and execute it in cmd "node index.js", then login with QR scan
from sulla.
Hi, i'm try to use but if the contact don't has a previews talk with me i cant start a new conversation. This is normal? Has plane for implementation this in the future?
I think just use:
client.sendText("[email protected]", "message");
Which phone is in international format without + sign.
from sulla.
I got same problem, I can't open new conversation, just works in conversations on "conversation tab".
from sulla.
Has anyone been able to send to a new contact?
from sulla.
Related Issues (20)
- How to manage and send message to diffusion list?
- Can't log in HOT 6
- Feature Request: Adding options for setting executablePath puppeteer option
- just ask HOT 1
- Sulla On Raspbian Not Working Correctly HOT 1
- subscribe - Unsubscribe - reolad Pls? HOT 1
- QR Code does not work! HOT 4
- Contacts Status (Stories images, not connection status) HOT 2
- get number connected HOT 4
- Stuck forever on ⠧ Authenticate to continue HOT 3
- profilePicFind Not working
- Verify phone is registered
- Banned HOT 4
- [Question] CRM integrations HOT 5
- Error: Evaluation failed: ReferenceError: webpackJsonp is not defined HOT 2
- How can I block the message from "status@broadcast"
- Authenticate to continue HOT 1
- Cannot establish connection
- can we download destructive images/videos?
- Not proceeding authentication
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 sulla.