Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added response editMessage id_latestEditMsgKey #1955

Merged
merged 4 commits into from
May 24, 2024

Conversation

marcelo386
Copy link
Contributor

No description provided.

@icleitoncosta
Copy link
Contributor

FIcou muito bom, mas para manter a simplicidade (conforme é o wajs), utilize como nome do atributo: latestEditMsgKey mesmo, e se for o caso, a pessoa usa o _serialized.

@@ -122,6 +122,9 @@ export async function sendRawMessage(
return {
id: message.id.toString(),
ack: message.ack!,
...(message.latestEditMsgKey && {
latestEditMsgKey: { _serialized: message.latestEditMsgKey._serialized },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pode passar o MsgKey direto aqui, sem a necessidade de serializar, ou pode fazer algo como:
latestEditMsgId, e ai voce ja passa o serializado

@icleitoncosta icleitoncosta merged commit b6b96b8 into wppconnect-team:main May 24, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants