with wave.open('telegram_beep.wav', 'w') as wav: wav.setnchannels(1) wav.setsampwidth(2) wav.setframerate(sample_rate)
# Convert to WAV ffmpeg -i input.mp3 -acodec pcm_s16le -ar 44100 output.wav ffmpeg -i input.wav -acodec libmp3lame -ab 128k output.mp3 Short Sound Example (Python) Generate a simple beep:
xcopy "%APPDATA%\Telegram Desktop\tdata\sounds\custom" "D:\backup\telegram_sounds\" /E /I telegram desktop notification sound
%APPDATA%\Telegram Desktop\tdata\config (Encrypted — not human-editable) ~/.local/share/TelegramDesktop/tdata/config Backup Custom Sounds Windows:
Supported formats: , .mp3
import wave import struct import math duration = 0.5 # seconds frequency = 880 # Hz (A5 note) sample_rate = 44100
urgency = critical timeout = 5000 sound_file = "/home/user/sounds/telegram.wav" Can intercept notifications and play custom sounds, but adds complexity. Version History | Telegram Version | Changes | |------------------|---------| | 4.8+ | Custom sounds folder support (Windows/Linux) | | 4.0+ | Built-in sound selector added | | 3.x | Basic notification sound toggle only | For latest updates, check Telegram Desktop GitHub or official Telegram FAQ . with wave
# Install Flatseal flatpak install flathub com.github.tchx84.Flatseal ~/Documents/TelegramSounds/ Quick Reference | Action | Windows | macOS | Linux | |--------|---------|-------|-------| | Custom sounds | ✅ Yes | ❌ No | ✅ Yes | | Settings path | Settings → Notifications & Sounds | System Settings → Notifications → Telegram | Settings → Notifications & Sounds | | Sound folder | %APPDATA%\Telegram Desktop\tdata\sounds\custom\ | N/A | ~/.local/share/TelegramDesktop/tdata/sounds/custom/ | | Supported formats | WAV, MP3 | System sounds only | WAV, MP3 | Alternative: Using Third-Party Tools Windows - EarTrumpet Better volume control per app including Telegram Linux - Dunst (notification daemon) Configure custom sounds via dunstrc: