aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/configuration/TelegramConfiguration.java
blob: 03dec4e9c69460cf726ae70e7ea4f50bdf8ba5e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.juick.api.configuration;

import com.juick.api.TGBot;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by vital on 28.03.2017.
 */
@Configuration
public class TelegramConfiguration {
    @Value("${telegram_token}")
    private String telegramToken;
    @Bean
    public TGBot tgBot() {
        return new TGBot(telegramToken);
    }
}