1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-24 22:15:33 +00:00

Added some more debugging to UserManager.

This commit is contained in:
Fabian Schlenz 2016-07-25 16:24:28 +02:00
parent 77bfcfb849
commit 627cef0ae2

View File

@ -31,6 +31,9 @@ import java.security.NoSuchAlgorithmException;
import java.io.IOException;
import java.io.File;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
public class UserManager {
public TLUser user = null;
public String phone = null;
@ -39,14 +42,17 @@ public class UserManager {
private TLSentCode sent_code = null;
private TLAuthorization auth = null;
private boolean password_needed = false;
private static Logger logger = LoggerFactory.getLogger(UserManager.class);
public UserManager(TelegramClient c) throws IOException {
this.client = c;
logger.debug("Calling getFullUser");
try {
TLUserFull full_user = this.client.usersGetFullUser(new TLInputUserSelf());
this.user = full_user.getUser().getAsUser();
} catch (Exception e) {
// This may happen. Ignoring it.
logger.debug("Ignoring exception", e);
}
}