Поправил названия в файлах пропертей
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
39e806dc35
commit
e36f0da9ab
@ -38,7 +38,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
|
||||
|
||||
@Override
|
||||
public String getBotUsername() {
|
||||
return telegramBotConfig.getName();
|
||||
return telegramBotConfig.getUsername();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -39,7 +39,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
|
||||
|
||||
@Override
|
||||
public String getBotUsername() {
|
||||
return telegramBotConfig.getName();
|
||||
return telegramBotConfig.getUsername();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -7,29 +7,29 @@ package dev.struchkov.godfather.telegram.domain.config;
|
||||
*/
|
||||
public class TelegramBotConfig {
|
||||
|
||||
private String name;
|
||||
private String username;
|
||||
private String token;
|
||||
|
||||
private ProxyConfig proxyConfig;
|
||||
|
||||
public TelegramBotConfig(String name, String token) {
|
||||
this.name = name;
|
||||
public TelegramBotConfig(String username, String token) {
|
||||
this.username = username;
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public TelegramBotConfig() {
|
||||
}
|
||||
|
||||
public void setBotUsername(String botUsername) {
|
||||
this.name = botUsername;
|
||||
public void setUsername(String botUsername) {
|
||||
this.username = botUsername;
|
||||
}
|
||||
|
||||
public void setBotToken(String botToken) {
|
||||
public void setToken(String botToken) {
|
||||
this.token = botToken;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public String getToken() {
|
||||
|
Loading…
Reference in New Issue
Block a user