<?php

declare(strict_types=1);

namespace PHPMax\Api\Messages;

use PHPMax\Support\Model;

class SendMessagePayload extends Model
{
     
    public $chatId;
     
    public $message;
     
    public $notify;

    protected static function schema(): array
    {
        return [
            'chatId' => ['type' => 'int', 'required' => true],
            'message' => ['type' => SendMessagePayloadMessage::class, 'required' => true],
            'notify' => ['type' => 'bool', 'default' => false],
        ];
    }
}

