← All methods

audio.setBroadcast

audio.setBroadcast(audio, target_ids[, enabled]) — «Транслировать в статус». music 2026-10-29: enabled=1|0 switches the broadcast on/off; audio=<owner>_<id> sets the track that is playing now (only while the switch is on; cleared after VC_MUSIC_BC_TTL without a heartbeat); audio=0/empty = playback stopped. Response like VK: ids of the targets whose status was changed.

Parameters

Parameter Type Required Description
audio mixed no
target_ids mixed no
enabled mixed no

Example

curl -s -X POST 'https://durovloh.net/api.php' \
  -d 'method=audio.setBroadcast' \
  -d 'access_token=USER_TOKEN'