MadelineProto/docs/TD_docs/constructors/privateChatInfo.md

45 lines
706 B
Markdown
Raw Normal View History

---
title: privateChatInfo
description: Ordinary chat with one user
---
## Constructor: privateChatInfo
[Back to constructors index](index.md)
Ordinary chat with one user
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|user|[user](../types/user.md) | Yes|Information about interlocutor|
### Type: [ChatInfo](../types/ChatInfo.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$privateChatInfo = ['_' => 'privateChatInfo', 'user' => user];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "privateChatInfo", "user": user}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
privateChatInfo={_='privateChatInfo', user=user}
```