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: {
|
key: {
|
||||||
remoteJid: id,
|
remoteJid: id,
|
||||||
fromMe: true,
|
fromMe: true,
|
||||||
id: generateMessageID(),
|
id: options?.messageId || generateMessageID(),
|
||||||
},
|
},
|
||||||
message: message,
|
message: message,
|
||||||
messageTimestamp: timestamp,
|
messageTimestamp: timestamp,
|
||||||
|
|||||||
@@ -377,6 +377,8 @@ export interface MessageOptions {
|
|||||||
/** Should it send as a disappearing messages.
|
/** Should it send as a disappearing messages.
|
||||||
* By default 'chat' -- which follows the setting of the chat */
|
* By default 'chat' -- which follows the setting of the chat */
|
||||||
sendEphemeral?: 'chat' | boolean
|
sendEphemeral?: 'chat' | boolean
|
||||||
|
/** Force message id */
|
||||||
|
messageId?: string
|
||||||
}
|
}
|
||||||
export interface WABroadcastListInfo {
|
export interface WABroadcastListInfo {
|
||||||
status: number
|
status: number
|
||||||
|
|||||||
Reference in New Issue
Block a user