messages.reportMusicListen

Report the listening duration of a music track (audio document without the voice flag), see here » for more info on the full flow.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.reportMusicListen#ddbcd819 id:InputDocument listened_duration:int = Bool;

Parameters

Name Type Description
id InputDocument The InputDocument of the listened song
listened_duration int Accumulated playing time in whole seconds

Result

Bool

Only users can use this method

Related pages

InputDocument

Defines a document for subsequent interaction.

Views and read metrics

Clients should report read state, message views and music listens using a specific set of methods.