add_profile_audio()#
- Client.add_profile_audio()#
Adds an audio file to the beginning of the profile audio files of the current user.
Usable by Users Bots- Parameters:
audio (
str) – Audio file to add. Pass a file_id as string to add an audio file that exists on the Telegram servers. The file must have been uploaded to the server usingsend_audio().- Returns:
bool– On success, True is returned.- Raises:
RPCError – In case of a Telegram RPC error.
Example
# Adds an audio file to a profile await app.add_profile_audio(file_id)