WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.07k stars 1.38k forks source link

help please on m.keys.fromme #1130

Closed RyuGameDev closed 1 week ago

RyuGameDev commented 1 week ago

Why when using version 6.7.6 and above when I send a message via Baileys it will trigger

m.keys.fromme=true

This makes it impossible for us to differentiate between messages sent by Baileys and messages sent manually via WhatsApp. even though in the previous version if Baileys sent a message by baileys would not trigger that event, I prefer version 6.7.5 and below but there the profile picture feature is not available

mrfzvx12 commented 1 week ago

Why when using version 6.7.6 and above when I send a message via Baileys it will trigger

m.keys.fromme=true

This makes it impossible for us to differentiate between messages sent by Baileys and messages sent manually via WhatsApp. even though in the previous version if Baileys sent a message by baileys would not trigger that event, I prefer version 6.7.5 and below but there the profile picture feature is not available

use message id (m.key.id), message id sent via baileys are different from messages sent manually via whatsapp

SheIITear commented 1 week ago

Your code probably uses the old style message id. You will have to update your code to fit the new message id style. (If you mean sending messages from baileys and from wa (the number used in baileys))

RyuGameDev commented 1 week ago

Why when using version 6.7.6 and above when I send a message via Baileys it will trigger m.keys.fromme=true This makes it impossible for us to differentiate between messages sent by Baileys and messages sent manually via WhatsApp. even though in the previous version if Baileys sent a message by baileys would not trigger that event, I prefer version 6.7.5 and below but there the profile picture feature is not available

use message id (m.key.id), message id sent via baileys are different from messages sent manually via whatsapp

how to differentiate between sent via baileys are different from messages sent manually via whatsapp

mrfzvx12 commented 1 week ago

Why when using version 6.7.6 and above when I send a message via Baileys it will trigger m.keys.fromme=true This makes it impossible for us to differentiate between messages sent by Baileys and messages sent manually via WhatsApp. even though in the previous version if Baileys sent a message by baileys would not trigger that event, I prefer version 6.7.5 and below but there the profile picture feature is not available

use message id (m.key.id), message id sent via baileys are different from messages sent manually via whatsapp

how to differentiate between sent via baileys are different from messages sent manually via whatsapp

message sent via baileys selects the same id in front of it, try this

let isBaileys = msg.key.id.startsWith("BAE5") || msg.key.id.startsWith("3EB0")
RyuGameDev commented 1 week ago

Why when using version 6.7.6 and above when I send a message via Baileys it will trigger m.keys.fromme=true This makes it impossible for us to differentiate between messages sent by Baileys and messages sent manually via WhatsApp. even though in the previous version if Baileys sent a message by baileys would not trigger that event, I prefer version 6.7.5 and below but there the profile picture feature is not available

use message id (m.key.id), message id sent via baileys are different from messages sent manually via whatsapp

how to differentiate between sent via baileys are different from messages sent manually via whatsapp

message sent via baileys selects the same id in front of it, try this

let isBaileys = msg.key.id.startsWith("BAE5") || msg.key.id.startsWith("3EB0")

thanks🙏🏻🙏🏻