. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto\EventHandler\Media; use danog\MadelineProto\EventHandler\Media; use danog\MadelineProto\MTProto; /** * Represents a generic audio file. */ abstract class AbstractAudio extends Media { /** Audio duration in seconds */ public readonly int $duration; /** @internal */ public function __construct( MTProto $API, array $rawMedia, array $audioAttribute, bool $protected, ) { parent::__construct($API, $rawMedia, $protected); $this->duration = $audioAttribute['duration']; } }