public void DeleteMessage(long chatId, int messageId) throws TelegramApiException {
try {
DeleteMessage deleteMessage = new DeleteMessage();
deleteMessage.setChatId(chatId);
deleteMessage.setMessageId(messageId);
bot.execute(deleteMessage);
} catch (TelegramApiException e) {
e.printStackTrace();
}
}
Student.scholarship(students);
import static org.example.spring.Student.scholarship;