Blog and knowledge base of the service
Sending an audio message in a Telegram bot
Published: 04.08.2025

An audio message in Telegram is a method for sending music tracks, podcasts, and audio files to chats, groups, and channels. It supports metadata (artist, title), covers, and chapters, turning audio into a full-fledged media object. Telegram automatically generates a player with a progress bar, allowing users to listen to content without downloading. The maximum duration is unlimited, which is ideal for longrides.

Sending an audio message in a Telegram bot

What formats does an audio message accept in Telegram and what are the limitations?

Some formats supported by Telegram:

  1. MP3 is a universal format that combines quality and size.
  2. AAC — provides good sound quality with smaller file sizes.
  3. OGG is a compression format that preserves quality while keeping files compact.
  4. WAV is a lossless format, suitable for high—quality sound.


Some restrictions related to sending audio messages to Telegram:

  1. The maximum size of the file to be sent is 2 GB (for Premium — 4 GB).
  2. The audio message duration is up to 1 minute.
  3. Sending messages to unknown users — Telegram restricts sending messages to unknown users to prevent spam. You can try adding a person to your contacts or wait for the restrictions to be lifted.
  4. Time restrictions — if an account is temporarily banned, messages can only be sent to those contacts who have already been added to the list, and to respond to those people who wrote first. The blocking time depends on the severity of the violation: the first case is several minutes or hours, repeated violations are days or weeks.


Popular errors when sending audio messages

400 Bad Request: Wrong file identifier

- Reason: Invalid URL, broken file_id, or non-audio file. 

- Solution: Check the Content-Type: audio/mpeg for MP3. 

413 Request Entity Too Large

- Reason: The file is >50 MB. 

- Solution: Convert to OPUS: 

400 Bad Request: Thumbnail must be JPEG and <200 KB

- Solution: Squeeze the cover: 

400 Bad Request: Audio title/performer too long

- Solution: Reduce the metadata to 64 characters. 

403 Forbidden: Bot can't send messages in chat

- Solution: Add the bot to the chat with administrator rights. 

Information

Technical information for the BOT-MARKET API

  1. The message type code (`MessageType'): "7" (for `SendAudio').
  2. Max. Sending speed: 20 messages/second in groups. 


Tips for effective use

1.File Optimization:

  - MP3: 128 kbit/s, 44.1 kHz (quality/size balance):     

2. Metadata for SEO:. Quality optimization:

- Always fill in the title and performer → Improves chat search. 

- Use keywords: performer: "Podcast about marketing". 

3. Trigger Covers:

- Create vivid JPEGs with text (for example: "New episode!"). 

- Optimal size: 500×500 px.

4. Long content:

- Split podcasts >50 MB into parts → add a "Continue" button.  

Comments
to write comments
Comment list is empty. Start now!