package com.red.circle.other.app.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "telegram")
public class TelegramProperties {

    private Bot bot = new Bot();
    private Monitor monitor = new Monitor();

    @Data
    public static class Bot {
        private String token;
    }

    @Data
    public static class Monitor {
        private List<String> chatIds;
        private int alertLimitSeconds = 60;
        private String proxyHost;
        private Integer proxyPort;
    }
}
