. * * @author Amir Hossein Jafari * @copyright 2016-2023 Amir Hossein Jafari * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto\EventHandler\Action; use danog\MadelineProto\EventHandler\Action; /** * User is uploading a voice message. */ final class UploadAudio extends Action { public function __construct( /** @var ?int Progress percentage */ public readonly ?int $progress ) { } public function toRawAction(): array { return parent::toRawAction() + [ 'progress' => $this->progress ]; } }