else if(text.startsWith("/add")){
Long id;
sendMessage.setText(message.getText());
sendMessage.setParseMode("Markdown");
for (Customer customer : Database.customerList) {
System.out.println(customer);
id = customer.getId();
sendMessage.setChatId(String.valueOf(id));
}
ComponentContainer.MY_TELEGRAM_BOT.sendMsg(sendMessage);
}
else if(text.startsWith("/add")){
ResultSet result = Database.getConnection().createStatement().executeQuery(QUERY);
while (result.next()){
sendMessage.setText(text);
String chatID = String.valueOf(result.getLong("chat_id"));
sendMessage.setChatId(chatID);
ComponentContainer.MY_TELEGRAM_BOT.sendMsg(sendMessage);
}
}