. * * @author Mahdi * @copyright 2016-2023 Mahdi * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto\EventHandler; use danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken; use danog\MadelineProto\MTProto; /** * Represents a private or secret chat message. */ abstract class AbstractPrivateMessage extends Message { /** @internal */ public function __construct(MTProto $API, array $rawMessage, array $info, bool $scheduled) { parent::__construct($API, $rawMessage, $info, $scheduled); } /** * Notify the other user in a private chat that a screenshot of the chat was taken. * */ abstract public function screenShot(): DialogScreenshotTaken; }