MadelineProto/docs/TD_docs/constructors/userFull.md

49 lines
1.3 KiB
Markdown
Raw Normal View History

---
title: userFull
description: Gives full information about a user (except full list of profile photos)
---
## Constructor: userFull
[Back to constructors index](index.md)
Gives full information about a user (except full list of profile photos)
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|user|[user](../types/user.md) | Yes|General info about the user|
|is\_blocked|[Bool](../types/Bool.md) | Yes|Is user blacklisted by current user|
|about|[string](../types/string.md) | Yes|Short user description|
|common\_chat\_count|[int](../types/int.md) | Yes|Number of common chats between the user and current user, 0 for the current user|
|bot\_info|[botInfo](../types/botInfo.md) | Yes|Information about bot if user is a bot, nullable|
### Type: [UserFull](../types/UserFull.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$userFull = ['_' => 'userFull', 'user' => user, 'is_blocked' => Bool, 'about' => 'string', 'common_chat_count' => int, 'bot_info' => botInfo];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "userFull", "user": user, "is_blocked": Bool, "about": "string", "common_chat_count": int, "bot_info": botInfo}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
userFull={_='userFull', user=user, is_blocked=Bool, about='string', common_chat_count=int, bot_info=botInfo}
```