GithubHelp home page GithubHelp logo

Comments (9)

danielcardeenas avatar danielcardeenas commented on May 26, 2024 5

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.

kaiserdj avatar kaiserdj commented on May 26, 2024 1

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.

Mrjavaci avatar Mrjavaci commented on May 26, 2024 1

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

THANK YOU FOR EVEVERYTHİNG

from sulla.

rgchurion avatar rgchurion commented on May 26, 2024

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.

kidstell avatar kidstell commented on May 26, 2024

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.

theonlyray avatar theonlyray commented on May 26, 2024

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.

MuallimCh avatar MuallimCh commented on May 26, 2024

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.

brunominervino avatar brunominervino commented on May 26, 2024

I got same problem, I can't open new conversation, just works in conversations on "conversation tab".

from sulla.

fernandovaller avatar fernandovaller commented on May 26, 2024

Has anyone been able to send to a new contact?

from sulla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.