MadelineProtoDocs/old_docs/API_docs_v34/constructors/inputPeerUserFromMessage.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: inputPeerUserFromMessage
description: Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPeerUserFromMessage
[Back to constructors index](index.md)
Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The chat where the user was seen|
|msg\_id|[int](../types/int.md) | Yes|The message ID|
|user\_id|[int](../types/int.md) | Yes|The identifier of the user that was seen|
### Type: [InputPeer](../types/InputPeer.md)
### Example:
```php
$inputPeerUserFromMessage = ['_' => 'inputPeerUserFromMessage', 'peer' => InputPeer, 'msg_id' => int, 'user_id' => int];
```
Or, if you're into Lua:
```lua
inputPeerUserFromMessage={_='inputPeerUserFromMessage', peer=InputPeer, msg_id=int, user_id=int}
```