17 lines
502 B
Java
17 lines
502 B
Java
package com.alterdekim.javabot;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
|
|
@Data
|
|
@Configuration
|
|
@PropertySource("file:./telegram.properties")
|
|
public class TelegramConfig { //
|
|
@Value("${bot.botToken}") private String botToken;
|
|
@Value("${bot.botLogin}") private String botLogin;
|
|
@Value("${bot.master}") private String masterId;
|
|
}
|