| 1 | <?php |
||
| 15 | class Music extends AbstractMessage |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Message type. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $type = 'music'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Properties. |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $properties = [ |
||
| 30 | 'title', |
||
| 31 | 'description', |
||
| 32 | 'url', |
||
| 33 | 'hq_url', |
||
| 34 | 'thumb_media_id', |
||
| 35 | 'format', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * 设置视频封面. |
||
| 40 | * |
||
| 41 | * @param string $mediaId |
||
| 42 | * |
||
| 43 | * @return Video |
||
| 44 | */ |
||
| 45 | public function thumb($mediaId) |
||
| 51 | } |
||
| 52 |