Skip to content

Instantly share code, notes, and snippets.

@zaidnizam
zaidnizam / PollUpdateDecrypt.ts
Last active February 28, 2024 07:59 — forked from PurpShell/PollUpdateDecrypt.ts
Poll Update Message Decryption
// Built around ShellTear's POC at #2215#issuecomment-1292885678 on @adiwajshing/baileys
// Copyright ~ purpshell
import crypto from 'node:crypto';
const enc = new TextEncoder();
/**
* Decrypt PollUpdate messages
*/
export class PollUpdateDecrypt {