Поправил названия в файлах пропертей
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
|
@Override
|
||||||
public String getBotUsername() {
|
public String getBotUsername() {
|
||||||
return telegramBotConfig.getName();
|
return telegramBotConfig.getUsername();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -39,7 +39,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getBotUsername() {
|
public String getBotUsername() {
|
||||||
return telegramBotConfig.getName();
|
return telegramBotConfig.getUsername();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -7,29 +7,29 @@ package dev.struchkov.godfather.telegram.domain.config;
|
|||||||
*/
|
*/
|
||||||
public class TelegramBotConfig {
|
public class TelegramBotConfig {
|
||||||
|
|
||||||
private String name;
|
private String username;
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
private ProxyConfig proxyConfig;
|
private ProxyConfig proxyConfig;
|
||||||
|
|
||||||
public TelegramBotConfig(String name, String token) {
|
public TelegramBotConfig(String username, String token) {
|
||||||
this.name = name;
|
this.username = username;
|
||||||
this.token = token;
|
this.token = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TelegramBotConfig() {
|
public TelegramBotConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBotUsername(String botUsername) {
|
public void setUsername(String botUsername) {
|
||||||
this.name = botUsername;
|
this.username = botUsername;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBotToken(String botToken) {
|
public void setToken(String botToken) {
|
||||||
this.token = botToken;
|
this.token = botToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getUsername() {
|
||||||
return name;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getToken() {
|
public String getToken() {
|
||||||
|
Loading…
Reference in New Issue
Block a user