Closed n1ppl3 closed 4 weeks ago
See https://core.telegram.org/tdlib/getting-started for the way to fetch chat list.
You can't fetch a user's status from the server using TDLib. It is updated whenever appropriate.
I got desired data by listening to UpdateUserStatus event, thanks for hint!
clientBuilder.addUpdateHandler(TdApi.UpdateUserStatus.class, this::onUpdateNewMessage);
//
private void onUpdateNewMessage(TdApi.UpdateUserStatus update) {
logger.info("{}: {}", update.userId, update.status);
}
(I'm using tdlight-java version 3.3.1+td.1.8.25)
Hi, I'm new to tdlib and wondering how to get the same result as using method messages.getDialogs
I'm interested in online user information especialy actual online status UserStatus I tried getChats + getChat but I get stale information...
Thanks!