set_profile_audio_position()#
- Client.set_profile_audio_position()#
Changes position of an audio file in the profile audio files of the current user.
Usable by Users Bots- Parameters:
file_id (
str) – Identifier of the file from profile audio files, which position will be changed.after_file_id (
str) – Identifier of the file from profile audio files after which the file will be positioned. Pass None to move the file to the beginning of the list.
- Returns:
bool– On success, True is returned.
Example
# Change audio position in profile await app.set_profile_audio_position(file_id, after_file_id) # Move audio to the beginning of profile await app.set_profile_audio_position(file_id)