wa-automate-nodejs icon indicating copy to clipboard operation
wa-automate-nodejs copied to clipboard

Issue With Reply Quote's Origin

Open fire17 opened this issue 2 years ago • 2 comments
trafficstars

Hi there, I've noticed a problem with reply

the problem is that the quote origin of the original message is changed to the group the reply is sent to (which is wrong) Here the scenerio: I have an open group MyGroup another user sends a message "/test" that triggers me my account to send a message "TEST" to the user directly (not to the group) and Save The MessageID Now, i send a reply to MyGroup, with that MessageID.

What I Expect: A message sent to MyGroup, Quoting Me: TEST What I Get: A message sent to MyGroup Quoting MyGroup: TEST

This is wrong as it changes the original source of the sender also it doesnt allow the user to click on the message to be forwarded to it like it should, which I really really need please make the quoted origin set by the quotedMsg's original sender/origin and not the group that the reply is being sent to. When clicking on this replyed message, the quoted message should open (if the user has access to the chat it is from)

Thanks a bunch!

fire17 avatar Jan 20 '23 15:01 fire17

Seems a bit complicated. Please include code/api request examples and screenshots of what it's doing now compared to what you want it to do + a video might also make this a bit more understandable.

smashah avatar Jan 21 '23 10:01 smashah

Code:

if "/test" in str(text):
    # when receiving a message with /test in it, Send a TEST123 Message to the USER (directly, not to this origin group)
    msgID = water.sendMessage(_message="TEST123", _number=user)
    
    print(f"TEST MESSAGE SENT DIRECRLY TO USER {user} not {origin} group")
    print("TEST MESSAGE SENT", msgID)
    print("TEST MESSAGE SENT", msgID)
    print("TEST MESSAGE SENT", msgID)
    print("TEST MESSAGE SENT", msgID)
    print("TEST MESSAGE SENT", msgID)
    print("TEST MESSAGE SENT", msgID)
    
    # and reply to that message (sent to the origin group)
    time.sleep(1)
    replyID = driver.reply(origin,"REPLYING TO TEST MESSAGE", msgID)
    print("REPLYED SUCCESFULY", replyID)

On Phone: (TEST123 was correctly sent directly to me (in a personal chat between Sunny and me) ) WhatsApp Image 2023-01-21 at 18 34 48

And the Reply (which is wrong) WhatsApp Image 2023-01-21 at 18 34 48

Notice that the quote referal leads to this group we are in (Chocolate shop) and not the correct origin of the TEST123 Message. I expect clicking on the reply to open my chat with sunny and mark the correct message. (just like private reply)

Hope this is clear enough.

I'm really needing this to work. Since I found out about the limiting of opening groups, my option is after some onboarding (in the service group) To send a message to the user in a direct chat: i.e - Thank you for using our service, if you have any other questions feel welcome to ask us here :) Then, Send a reply (with that message) to the group chat of my service. This service group is short lived. Click here to open Then remove the user from the group - which will free it up for the next user who asks to use the service

fire17 avatar Jan 21 '23 16:01 fire17