<?php

declare(strict_types=1);

namespace App\Framework\Notification\Channels\Telegram;

use App\Framework\Notification\Channels\Telegram\ValueObjects\TelegramMessageId;

/**
 * Telegram API Response Value Object
 */
final readonly class TelegramResponse
{
    public function __construct(
        public bool $success,
        public TelegramMessageId $messageId,
        public array $rawResponse = []
    ) {
    }

    public function isSuccess(): bool
    {
        return $this->success;
    }
}
