from telegram server with user_id?
there is api but that not working
responsed error USER_ID_INVALID
TLRPC.TL_users_getFullUser tl_userFull = new TLRPC.TL_users_getFullUser();
TLRPC.TL_inputUser input=new TLRPC.TL_inputUser();
input.user_id=some user id;
tl_userFull.id = input;
ConnectionsManager.getInstance(currentAccount).sendRequest(tl_userFull, (response, error) -> {
if(error ==null){
TLRPC.User user = ((TLRPC.TL_userFull) response).user;
Log.d("no_error",""+user.id);
}else {
Log.d("error",""+error.text);
}
});
the only working when you use your User_id
api
https://core.telegram.org/method/users.getFullUser
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня