Skip to content

Commit

Permalink
Send friday lunch
Browse files Browse the repository at this point in the history
  • Loading branch information
irostub committed Apr 18, 2024
1 parent f8dbe66 commit 8d9c0fa
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,21 @@ public void sendTotalMessage() {
"신청자 : " + enterAccount)
.build();

StringBuilder sb = new StringBuilder();
sb.append("--- ").append(fridayLunch.getChatGroup().getChatGroupName()).append(" ---").append("\n")
.append("총 신청 인원 : ").append(fridayLunchAccounts.size()).append("\n")
.append("신청자 : ").append(enterAccount);
// StringBuilder sb = new StringBuilder();
// sb.append("--- ").append(fridayLunch.getChatGroup().getChatGroupName()).append(" ---").append("\n")
// .append("총 신청 인원 : ").append(fridayLunchAccounts.size()).append("\n")
// .append("신청자 : ").append(enterAccount);
//
// SendMessage lunchChatRoomMessage = SendMessage.builder()
// .chatId(-403751319L)
// .text(sb.toString())
// .build();

SendMessage lunchChatRoomMessage = SendMessage.builder()
.chatId(-403751319L)
.text(sb.toString())
.build();

try {
absSender.execute(lunchChatRoomMessage);
} catch (TelegramApiException e) {
log.error("launch message send fail, e=",e);
}
// try {
// absSender.execute(lunchChatRoomMessage);
// } catch (TelegramApiException e) {
// log.error("launch message send fail, e=",e);
// }
try {
absSender.execute(send);
} catch (TelegramApiException e) {
Expand Down

0 comments on commit 8d9c0fa

Please sign in to comment.