mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added option for forcing message id
This commit is contained in:
@@ -260,7 +260,7 @@ export class WAConnection extends Base {
|
||||
key: {
|
||||
remoteJid: id,
|
||||
fromMe: true,
|
||||
id: generateMessageID(),
|
||||
id: options?.messageId || generateMessageID(),
|
||||
},
|
||||
message: message,
|
||||
messageTimestamp: timestamp,
|
||||
|
||||
@@ -377,6 +377,8 @@ export interface MessageOptions {
|
||||
/** Should it send as a disappearing messages.
|
||||
* By default 'chat' -- which follows the setting of the chat */
|
||||
sendEphemeral?: 'chat' | boolean
|
||||
/** Force message id */
|
||||
messageId?: string
|
||||
}
|
||||
export interface WABroadcastListInfo {
|
||||
status: number
|
||||
@@ -474,4 +476,4 @@ export type BaileysEvent =
|
||||
'received-pong' |
|
||||
'credentials-updated' |
|
||||
'connection-validated' |
|
||||
'blocklist-update'
|
||||
'blocklist-update'
|
||||
|
||||
Reference in New Issue
Block a user