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()); }
javascript
api.getUser(user.id);
python
napi.get_user("UserId")

Response

json
{ "method":"userDetails", "user":{ "name":"Adam", "id":"90089586341121118", "is_bot":false, "version":"0n1a", "status":"" } }

Powered by Notaku