Поправил названия в файлах пропертей
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-02-19 00:20:20 +03:00
parent 39e806dc35
commit e36f0da9ab
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
3 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
@Override
public String getBotUsername() {
return telegramBotConfig.getName();
return telegramBotConfig.getUsername();
}
@Override

View File

@ -39,7 +39,7 @@ public class TelegramPollingBot extends TelegramLongPollingBot implements Telegr
@Override
public String getBotUsername() {
return telegramBotConfig.getName();
return telegramBotConfig.getUsername();
}
@Override

View File

@ -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() {