mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: allow messageSecret as param to poll create
This commit is contained in:
@@ -41,6 +41,10 @@ export const BufferJSON = {
|
||||
}
|
||||
}
|
||||
|
||||
export const getKeyAuthor = (key: proto.IMessageKey | undefined | null) => (
|
||||
(key?.fromMe ? 'me' : key?.participant || key?.remoteJid) || ''
|
||||
)
|
||||
|
||||
export const writeRandomPadMax16 = (msg: Uint8Array) => {
|
||||
const pad = randomBytes(1)
|
||||
pad[0] &= 0xf
|
||||
|
||||
Reference in New Issue
Block a user