Use this method to get a userโs profile. On success, the User is returned.
Field | Type | Required | Description |
method | String | Yes | "getUser" |
user_id | String | Yes | Unique identifier for this User or Bot. |
Requests
json{ "method": "getUser", "user_id": "14547841023658889" }
java// The object will be received in the onReceive callback. else if(text.equals("getUser")){ api.getUser(incomingMsg.getFrom().getId()); }
javascriptapi.getUser(user.id);
pythonnapi.get_user("UserId")
Response
json{ "method":"userDetails", "user":{ "name":"Adam", "id":"90089586341121118", "is_bot":false, "version":"0n1a", "status":"" } }