DEV Community

Cover image for Pacote Node.js para envio de Mensagens via WhatsApp
Alexandre Freire
Alexandre Freire

Posted on • Edited on • Originally published at alexandrefreire.dev.br

5

Pacote Node.js para envio de Mensagens via WhatsApp

Fiz esse pacote para facilitar o envio daquelas mensagens pré-digitadas antes de iniciar a conversa via WhatsApp, esse pacote não vai contra qualquer regra do WhatsApp como se vê em outros. Foi escrito e transformado em pacote para se utilizar com Node.js porém você pode pegar o código fonte no GitHub e utilizar como achar melhor, a estrutura é bem simples.

Instalar

npm install @aninga/whatsapp-manager
Enter fullscreen mode Exit fullscreen mode

Uso

import {WMCompose, WMSend} from '@aninga/whatsapp-manager';

let example = new WMCompose();
example.writeText("Hello");
example.writeText("line break: before, after",1,1);
example.writeText(":)");
WMSend('5569999999999', example.getText());
Enter fullscreen mode Exit fullscreen mode

Texto simples

WMSend('5569999999999', "other text");
Enter fullscreen mode Exit fullscreen mode

Acessar GitHub
Acessar NPM

Hot sauce if you're wrong - web dev trivia for staff engineers

Hot sauce if you're wrong · web dev trivia for staff engineers (Chris vs Jeremy, Leet Heat S1.E4)

  • Shipping Fast: Test your knowledge of deployment strategies and techniques
  • Authentication: Prove you know your OAuth from your JWT
  • CSS: Demonstrate your styling expertise under pressure
  • Acronyms: Decode the alphabet soup of web development
  • Accessibility: Show your commitment to building for everyone

Contestants must answer rapid-fire questions across the full stack of modern web development. Get it right, earn points. Get it wrong? The spice level goes up!

Watch Video 🌶️🔥

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay