Skip to content

Instantly share code, notes, and snippets.

@FindMuck
FindMuck / tg_emoji_converter_spoofer.md
Last active November 13, 2025 02:11
[PowerShell 5.1] Telegram Emoji Converter & Duration Spoofer

Telegram Emoji Converter & Duration Spoofer

This Gist contains a portable PowerShell 5.1 script to convert .avif files into video .webm emojis or static .png stickers, suitable for Telegram. A key feature of this script is its ability to spoof the duration of the output .webm files, bypassing Telegram's 3-second limit for video emoji.

Features

  • AVIF to WEBM/PNG Conversion: Converts .avif files into video .webm emojis or static .png stickers.
  • Duration Spoofing: Modifies the metadata of .webm files to bypass Telegram's 3-second duration limit for video emojis, a technique inspired by the tgradish Python script.
  • Parallel Processing: Utilizes a portable ThreadJob module for concurrent file conversions, significantly speeding up the process.
  • Adaptive Quality: Attempts multiple CRF (Constant Rate Factor) levels to ensure the output file size is within Telegram's limits.