Client sign-offs on sound design clips always turn messy when you are bouncing download links back and forth across different threads. With FlexGram, you can stream compressed MP3 demos right into the chat window and let directors grab lossless master WAVs with a single button tap. The entire pipeline uses zero-import media handlers and chat action indicators to give clients instant feedback without opening an external file hosting service.
📁 Filename:
command/samples.js👨💻 Code:
sendMessage('🎧 *Client Review Suite*\nSelect a sound asset below to audition the draft mix in-chat:', {
buttons: [
[{ text: '🎵 Synth Lead Hook', command: '/preview synth' }, { text: '🥁 Live Drum Break', command: '/preview drums' }],
[{ text: '⚡ Ambient Stinger FX', command: '/preview stinger' }]
]
});📁 Filename:
command/preview.js👨💻 Code:
const track = params.trim();
sendChatAction('upload_document');
sendAudio(`https://cdn.example.com/audio/${track}-preview.mp3`, {
caption: `Draft preview: *${track}* (128kbps demo).\nTap below to pull the uncompressed stem.`,
buttons: [
[{ text: '📦 Deliver 24-bit WAV', command: `/master ${track}` }],
[{ text: '« Back to Catalog', command: '/samples' }]
]
});
📁 Filename:
command/master.js👨💻 Code:
const track = params.trim();
sendChatAction('upload_document');
sendDocument(`https://cdn.example.com/audio/${track}-master.wav`, {
caption: `Studio master for *${track}* (24-bit 48kHz WAV). Exported and ready for timeline drop.`
});
💡 Always trigger
sendChatAction right before dispatching heavy audio or document payloads so the native Telegram status bar signals upload activity while your CDN resolves.#FlexGram
