1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-11 12:48:25 +01:00
MadelineProto/src/EventHandler/Media/AbstractAudio.php

26 lines
544 B
PHP
Raw Normal View History

2023-07-04 18:19:06 +02:00
<?php declare(strict_types=1);
namespace danog\MadelineProto\EventHandler\Media;
use danog\MadelineProto\EventHandler\Media;
/**
* Represents a generic audio file.
*/
abstract class AbstractAudio extends Media
{
/** Audio duration in seconds */
2023-07-04 18:19:06 +02:00
public readonly int $duration;
/** @internal */
public function __construct(
MTProto $API,
array $rawMedia,
array $audioAttribute
) {
{
parent::__construct($API, $rawMedia);
$this->duration = $audioAttribute['duration'];
}
2023-07-04 18:19:06 +02:00
}