|
| 1 | +<?php declare(strict_types=1); |
| 2 | + |
| 3 | +/** |
| 4 | + * This file is part of MadelineProto. |
| 5 | + * MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. |
| 6 | + * MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 7 | + * See the GNU Affero General Public License for more details. |
| 8 | + * You should have received a copy of the GNU General Public License along with MadelineProto. |
| 9 | + * If not, see <http://www.gnu.org/licenses/>. |
| 10 | + * |
| 11 | + * @author Mahdi <mahdi.talaee1379@gmail.com> |
| 12 | + * @copyright 2016-2025 Mahdi <mahdi.talaee1379@gmail.com> |
| 13 | + * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 |
| 14 | + * @link https://docs.madelineproto.xyz MadelineProto documentation |
| 15 | + */ |
| 16 | + |
| 17 | +namespace danog\MadelineProto\EventHandler\Message\Service; |
| 18 | + |
| 19 | +use danog\MadelineProto\EventHandler\Message\ServiceMessage; |
| 20 | +use danog\MadelineProto\MTProto; |
| 21 | + |
| 22 | +/** |
| 23 | + * Emitted only in private chats if the other side requested to disable content protection ». |
| 24 | + */ |
| 25 | +class DialogNoForwardRequest extends ServiceMessage |
| 26 | +{ |
| 27 | + public function __construct( |
| 28 | + MTProto $API, |
| 29 | + array $rawMessage, |
| 30 | + array $info, |
| 31 | + |
| 32 | + /** @var bool If set, this request was accepted or rejected by the other user and thus cannot be used anymore. */ |
| 33 | + public readonly bool $expired, |
| 34 | + |
| 35 | + /** @var bool Previous protection status. */ |
| 36 | + public readonly bool $prev, |
| 37 | + |
| 38 | + /** @var bool New requested protection status. */ |
| 39 | + public readonly bool $new |
| 40 | + ) { |
| 41 | + parent::__construct($API, $rawMessage, $info); |
| 42 | + } |
| 43 | +} |
0 commit comments