. * * @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\MTProto; use danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken; /** * Represents a private or secret chat message. */ abstract class AbstractPrivateMessage extends Message { /** @internal */ public function __construct(MTProto $API, array $rawMessage, array $info) { parent::__construct($API, $rawMessage, $info); } /** * Notify the other user in a private chat that a screenshot of the chat was taken. * */ abstract public function screenShot(): DialogScreenshotTaken; }