mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-15 11:53:02 +00:00
Format long sendMessage calls for readability
Refactored sendMessage calls in DeleteAppleAppCommand and InfoCommand to split long lines for improved code readability. No functional changes were made.
This commit is contained in:
@@ -40,6 +40,7 @@ public class DeleteAppleAppCommand extends BaseStoreScraperBotCommand {
|
||||
|
||||
group.getAppleApps().removeIf(app -> appId.equals(app.appId()));
|
||||
GroupRepository.INSTANCE.save(groupId, group);
|
||||
StoreScrapeBotTelegramClient.INSTANCE.sendMessage(chat.getId(), "Apple app deleted successfully");
|
||||
StoreScrapeBotTelegramClient.INSTANCE.sendMessage(
|
||||
chat.getId(), "Apple app deleted successfully");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
import com.miti99.storescraperbot.repository.GroupRepository;
|
||||
import org.telegram.telegrambots.meta.api.objects.User;
|
||||
import org.telegram.telegrambots.meta.api.objects.chat.Chat;
|
||||
import org.telegram.telegrambots.meta.generics.TelegramClient;
|
||||
@@ -24,6 +22,7 @@ public class InfoCommand extends BaseStoreScraperBotCommand {
|
||||
|
||||
long groupId = chat.getId();
|
||||
|
||||
StoreScrapeBotTelegramClient.INSTANCE.sendMessage(chat.getId(), "Id của nhóm là <code>%s</code>\n".formatted(groupId));
|
||||
StoreScrapeBotTelegramClient.INSTANCE.sendMessage(
|
||||
chat.getId(), "Id của nhóm là <code>%s</code>\n".formatted(groupId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user