Send text message Real time updated

This commit is contained in:
2025-07-30 21:10:33 +03:30
parent c6eea66966
commit f604ca4f22
5 changed files with 109 additions and 6 deletions
@@ -2508,14 +2508,22 @@ public class ActionHandler {
return;
}
System.out.println("\n💬 Your Chats:");
System.out.println("0. 📦 Archived chats");
int index = 1;
System.out.println("0. Archived chats");
for (ChatEntry chat : Session.activeChats) {
System.out.printf("%d. [%s] %s (%s)\n", index++, chat.getType(), chat.getName(), chat.getDisplayId());
String time = (chat.getLastMessageTime() == null)
? "No messages yet"
: chat.getLastMessageTime().toString();
System.out.printf("%d. [%s] %s (%s) - Last: %s\n",
index++, chat.getType(), chat.getName(), chat.getDisplayId(), time);
}
}
public static class ChatStateMonitor implements Runnable {
private final PrintWriter out;