af913337456 / dh-messages-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dh-messages-client

This client uses android API to mimic browser calls to connect to and manage messages from https://messages.google.com/web/conversations

Status

Node

  • extract QR code image
  • refresh token
  • read incoming messages
  • read messages for contact
  • send message to existing contact
  • download images
  • download attachments
  • send images/attachments
  • send message to new number

Go

  • extract QR code image
  • refresh token
  • read incoming messages
  • read messages for contact
  • send message to existing contact
  • download images
  • download attachments
  • send images/attachments
  • send message to new number

Testing

  • The following tests will start the connection, and if needed, generate a new QR image file in the source data folder.
  • Open and scan image using messages app
  • All events should fire and show in console
  • After auth, all required auth data is stored in a sessiondata JSON file in data folder.
  • If session file already exists, then initial QR not required, and will connect and refresh token where needed

Node (Docker)

Install Docker

cd myjsapp
docker compose up --build

Node (Local)

Install node > v15

cd myjsapp
npm install
node src/test.js

Go (Docker)

Install Docker

cd mygoapp
docker compose up --build

Go (Local)

Install Go

cd mygoapp
go run dhmessagestest

About

License:Apache License 2.0


Languages

Language:JavaScript 59.7%Language:Go 39.7%Language:Dockerfile 0.6%