report_music_listen()¶
- async Client.report_music_listen()¶
Report that the user listened to a music message (for analytics).
Usable by Users Bots- Parameters:
message_id (
int) – The message ID of the music.listened_duration (
int) – How many seconds of the track were listened to.
- Returns:
bool– True on success.
Example
await app.report_music_listen(message_id=123, listened_duration=60)