Code Monkey home page Code Monkey logo

wuzapi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wuzapi's Issues

New problem receiving image

Hi guys, im using wuzapi with node-red for a chatbot.
Last wednesday the chatbot works properly but today i have a new problem.
image
When I send an image to the bot in the payload I only receive the buffer of the photo but last week I received a payload that was an object with information about the person who sent the message and I received the image in .enc with the data to decrypt it (mimetype, FileENCSHA, FileENCSHA256, etc) and went through an api to pass it to base64
Did the API have any changes these days? I don't understand why now the image arrives different

Thank you

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x86bb3a]

2022-11-14T19:06:26+07:00 INF Message sent host=0.0.0.0 id=B228D74613E2DDD0F7958F738A72AE86 role=wuzapi timestamp="{0 63804024386 19609344}"
2022-11-14T19:06:26+07:00 INF Message delivered host=0.0.0.0 id=D7E05D5EE17DD2A15ED3E96F3405E0D9 role=wuzapi source=[email protected] timestamp="{0 63804024386 19609344}"
2022-11-14T19:06:26+07:00 WRN Skipping webhook. Not subscribed for this type host=0.0.0.0 role=wuzapi type=ReadReceipt
2022-11-14T19:06:26+07:00 INF Got API Request duration=774.648288 host=0.0.0.0 ip=172.17.12.185:37724 method=POST req_id=cdp2ugkon3mb6v6tj9l0 role=wuzapi size=134 status=200 url=/chat/send/text userid=1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x86bb3a]

goroutine 83199 [running]:
go.mau.fi/libsignal/state/record.(*State).SenderChainKey(...)
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/state/record/SessionState.go:297
go.mau.fi/libsignal/session.(*Cipher).Encrypt(0xc0014599a8, {0xc000884000, 0xb2, 0x160})
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/session/SessionCipher.go:71 +0x7a
go.mau.fi/whatsmeow.(*Client).encryptMessageForDevice(0xc00069d000, {0xc000ccf1e0, 0xaf, 0xaf}, {{0xc000831880, 0xd}, 0x0, 0x0, {0xc62306, 0xe}, ...}, ...)
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/send.go:362 +0x67d
go.mau.fi/whatsmeow.(*Client).handleRetryReceipt(0xc00069d000, 0xc000b43ea0, 0xc0011c78c0)
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/retry.go:152 +0x125d
go.mau.fi/whatsmeow.(*Client).handleReceipt.func1()
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/receipt.go:26 +0x33
created by go.mau.fi/whatsmeow.(*Client).handleReceipt
/home/cloud/go/pkg/mod/go.mau.fi/[email protected]/receipt.go:25 +0xca

Problem sending message to existing user.

After connection to the API, when I send a message to a already existing user using its number, the message is send, but the message is not to the user, it creates a new chat using the passed number in the payload and send a message to a empty new chat.

Client outdated (405) connect failure

2023-06-15T10:24:40+07:00 INF Already logged in, just connect host=0.0.0.0 role=wuzapi
10:24:40.510 [Client/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat
10:24:48.665 [Client/Socket DEBUG] Frame websocket read pump starting 0xc000192420
10:24:54.332 [Client/Recv DEBUG]
10:24:54.332 [Client ERROR] Client outdated (405) connect failure
2023-06-15T10:24:54+07:00 WRN Unhandled event event=&{} host=0.0.0.0 role=wuzapi
10:24:54.429 [Client/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF
10:24:54.430 [Client/Socket DEBUG] Frame websocket read pump exiting 0xc000192420

any update for this case?

No webhook for voice messages

Hello,

I'm trying to read voice messages, but the webhook doesn't work on them.

Is it by design, or did I make some installation or configuration errors?

2024-03-27T18:18:43Z INF Message Received | role=server host=0.0.0.0 id=E681F395EBE43BD9463D1BD84C8154E8 source=******@s.whatsapp.net parts=pushname: ******, timestamp: 2024-03-27 18:18:43 +0000 UTC, type: media

2024-03-27T18:19:50Z INF Chat Presence received | role=server host=0.0.0.0 state=composing media=audio chat=******@s.whatsapp.net sender=******@s.whatsapp.net

2024-03-27T18:19:50Z WRN Skipping webhook. Not subscribed for this type | role=server host=0.0.0.0 type=ChatPresence

2024-03-27T18:19:52Z INF Chat Presence received | role=server host=0.0.0.0 state=paused media= chat=******@s.whatsapp.net sender=******@s.whatsapp.net

2024-03-27T18:19:52Z WRN Skipping webhook. Not subscribed for this type | role=server host=0.0.0.0 type=ChatPresence

2024-03-27T18:19:53Z INF Message Received | role=server host=0.0.0.0 id=12D1A7116861B1EB87FB7EF1943E8B86 source=******@s.whatsapp.net parts=pushname: ******, timestamp: 2024-03-27 18:19:53 +0000 UTC, type: media

2024-03-27T18:19:59Z INF Chat Presence received | role=server host=0.0.0.0 state=composing media=audio chat=******@s.whatsapp.net sender=******@s.whatsapp.net

2024-03-27T18:19:59Z WRN Skipping webhook. Not subscribed for this type | role=server host=0.0.0.0 type=ChatPresence

2024-03-27T18:20:02Z INF Chat Presence received | role=server host=0.0.0.0 state=paused media= chat=******@s.whatsapp.net sender=******@s.whatsapp.net

2024-03-27T18:20:02Z WRN Skipping webhook. Not subscribed for this type | role=server host=0.0.0.0 type=ChatPresence

2024-03-27T18:20:02Z INF Message Received | role=server host=0.0.0.0 id=1ABDEE55801B3CBB35209528F5085616 source=******@s.whatsapp.net parts=pushname: ******, timestamp: 2024-03-27 18:20:02 +0000 UTC, type: media

failed on go run main.go

command-line-arguments

.\main.go:99:4: s.routes undefined (type *server has no field or method routes)
.\main.go:101:4: s.connectOnStartup undefined (type *server has no field or method connectOnStartup)

Send message to group

I'm trying to send a message to a group, but it seems that the group uses some old jid format because with a freshly created group it's working.

Format of the jid is: 33******[email protected]

The error I get:
WRN: Bad jid format

History Sync Not run on linux

hello asternic, thanks for sharing this project. i have some problem when i use this project on linux server, event historySync not trigger after scanned QR. but this event work normally on local machine (windows).
this some information maybe you need it.

Server

  • Ubuntu 22 LTS
  • nginx
  • no golang installed
  • binary placed in ~/wuzapi/wuzapi
  • use service from example service

Local Machine

  • Windows 11 (22H2)
  • installed golang (for build this project)
  • run binary from project folder

the indication this not trigger, folder files/user_xxx not created after scanned QR, but this running well on local.
thanks.

send buttons/templates

Hello, Sends a template message, that can contain quick reply buttons, url buttons and call buttons isnt working, gives me 404 error.
Saw that it was commented in last update, whatsmeow stopped working with templates?

get group member nickname

is there a way to get member infos (nickname,...) from a group?
I suppose get user api is capable to get friend info.
thanks in advance.

bug => database is locked

this error keep coming
[Client ERROR] Failed to get prekey for retry receipt: failed to query next prekey ID: database is locked (5) (SQLITE_BUSY)

what it means i am using sqlite

Got an "Skipping webhook" error

Hello,

Tried to setting up the webhook, but it simply doesnt work.

Some message I'v got so far:

"2022-11-24T03:07:49+07:00 WRN Skipping webhook. Not subscribed for this type host=0.0.0.0 role=wuzapi type=Message"

What happened? Does I missed something here? Tankyouu

seng Image

hi everyone when send a image y say errot
TypeError: Failed to fetch

No está funcionando el Dockerfile (12/04/2024)

Hola, en primer lugar quería agradecer por la creación de este proyecto, está muy interesante, me ha gustado mucho.

Además pasaba a reportar un error que me encontré el día de hoy (12/04/2024). No consigo crear la imágen docker ya que me da un error en durante el proceso:

=> ERROR [build 5/5] RUN go build -o server .

Adjunto una imágen en donde se muestra el error completo:

image

Muchas gracias nuevamente.

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.