> ## Documentation Index
> Fetch the complete documentation index at: https://n-a-818b4087.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Send media

> Send voice notes, audio, photos, videos, documents, stickers, animations, and video notes.

Every media method accepts a path, a valid URL, a Telegram file ID, in-memory bytes, or an open file object. The examples below use a path or URL; see [uploads and files](https://n-a-818b4087.mintlify.site/guides/files.md) for the full source rules.

## Voice

```python theme={null}
telegram.send_voice(
    chat_id = 'YOUR_CHAT_ID',
    voice = 'path/to/voice.ogg',
    duration = 7,
    caption = 'Check out this voice message!'
)
```

## Audio

```python theme={null}
telegram.send_audio(
    chat_id = 'YOUR_CHAT_ID',
    audio = 'path/to/song.mp3',
    performer = 'Artist Name',
    title = 'Song Name',
    thumbnail = '/path/to/album-cover.jpg'
)
```

Use `thumbnail_file_name` when the thumbnail comes from memory or an open file object.

## Photos

```python theme={null}
telegram.send_photo(
    chat_id = 'YOUR_CHAT_ID',
    photo = 'path/to/photo.jpg',
    caption = 'Check this picture!',
    has_spoiler = True
)
```

## Videos

```python theme={null}
telegram.send_video(
    chat_id = 'YOUR_CHAT_ID',
    video = 'path/to/video.mp4',
    caption = 'Check this video!',
    supports_streaming = True,
    duration = 12,
    width = 1280,
    height = 720
)
```

Set `has_spoiler = True` to hide the preview until the recipient taps it.

## Documents

```python theme={null}
telegram.send_document(
    chat_id = 'YOUR_CHAT_ID',
    document = 'path/to/report.pdf',
    caption = 'Monthly report',
    protect_content = True
)
```

Set `disable_content_type_detection = True` only when Telegram's automatic media type detection is not desired.

## Stickers

```python theme={null}
telegram.send_sticker(
    chat_id = 'YOUR_CHAT_ID',
    sticker = 'path/to/sticker.webp'
)
```

`emoji` is optional and is only used when a sticker is uploaded for the first time.

## Animations

```python theme={null}
telegram.send_animation(
    chat_id = 'YOUR_CHAT_ID',
    animation = 'path/to/animation.mp4',
    caption = 'Look at this animation!',
    duration = 5,
    width = 480,
    height = 270,
    has_spoiler = False
)
```

Telegram treats a video as an animation when it is muted or when it is a GIF. A video with an audio track may come back as a normal video message.

## Video notes

```python theme={null}
telegram.send_video_note(
    chat_id = 'YOUR_CHAT_ID',
    video_note = 'path/to/circular-video.mp4',
    duration = 10,
    length = 240
)
```

Video notes are the round, circular videos shown in Telegram chats.

## Send more than one file

Passing a list to `send_audio()`, `send_video()`, `send_photo()`, or `send_document()` sends a media group. See [media groups](https://n-a-818b4087.mintlify.site/guides/media-groups.md) for per-item captions, file names, and chunking.

> [!NOTE]
>
> All media sends return a parsed `Message` object. Media groups return a list of `Message` objects.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.