Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Update entity-user.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ex3ndr committed Jan 18, 2016
1 parent 0821386 commit b1a2ced
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/s2s/api/entity-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@

How Users are presented in API. Users are secured with Access Hashes.

## User object
## Definition

| required | field | type | description |
|:--------:|-------|------|-------------|
|+|uid|int|User's ID|
|+|accessHash|string|Access Hash of a user|
|+|isBot|bool|Is user actually a bot|
|+|name|string|Name of the user|
|+|avatar|Avatar|Avatar of the user|
|+|contacts|Contact[]|Contact information of the user|
|-|username|string|Username of the user|
|-|about|string|About text|
|-|sex|Sex|Sex of the user|
|-|timeZone|string|Timezone of the user|
|-|preferredLangiages|string[]|Preferred languages|

## Example
```json
{
"uid": 1122334455,
Expand Down

0 comments on commit b1a2ced

Please sign in to comment.