Layer 227
MessagesReportMusicListen
Report the listening duration of a music track (audio document without the voice flag), see here for more info on the full flow.
method
Users
messages.reportMusicListen#ddbcd819 id:InputDocument listened_duration:int = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputDocument | The Input Document of the listened song |
| ListenedDuration | int | Accumulated playing time in whole seconds |
Returns
BoolGogram Example
// MessagesReportMusicListen - positional arguments result, err := client.MessagesReportMusicListen(&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, 42) if err != nil { // handle error } // result is *tg.Bool