. * * @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; use danog\MadelineProto\MTProto; /** * Indicates that some messages were deleted. */ abstract class Delete extends Update { /** @var list List of identifiers of deleted messages */ public readonly array $ids; /** @internal */ public function __construct(MTProto $API, array $rawDelete) { parent::__construct($API); $this->ids = $rawDelete['messages']; } }