Skip to contents

Convenience wrapper to send an audio file to a target entity.

Usage

send_audio(client, entity, file, ...)

Arguments

client

TelegramClient instance.

entity

Target entity (username, id, or TLObject).

file

Audio file path or file-like object.

...

Additional arguments passed to `TelegramClient$send_message()` (e.g., `message`, `attributes`, `thumb`, `parse_mode`, `buttons`).

Value

The sent message object (or Updates result).