<?php

declare(strict_types=1);

namespace PHPMax\Api\Messages;

use PHPMax\Support\Model;

class EditMessagePayload extends Model
{
     
    public $chatId;
     
    public $messageId;
     
    public $text;
     
    public $elements = [];
     
    public $attachments = [];

    protected static function schema(): array
    {
        return [
            'chatId' => ['type' => 'int', 'required' => true],
            'messageId' => ['type' => 'int', 'required' => true],
            'text' => ['type' => 'string', 'required' => true],
            'elements' => ['type' => 'list<mixed>', 'default' => static function (): array {
                return [];
            }],
            'attachments' => ['type' => 'list<mixed>', 'default' => static function (): array {
                return [];
            }],
        ];
    }
}
