MadelineProtoDocs/docs/API_docs/constructors/inputUserFromMessage.md

41 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2019-06-23 13:07:51 +02:00
---
title: inputUserFromMessage
2019-12-27 17:48:04 +01:00
description: Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
2019-06-23 13:07:51 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputUserFromMessage
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Defines a [min](https://core.telegram.org/api/min) user that was seen in a certain message of a certain chat.
2019-06-23 13:07:51 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|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|
2019-06-23 13:07:51 +02:00
### Type: [InputUser](../types/InputUser.md)
### Example:
```php
$inputUserFromMessage = ['_' => 'inputUserFromMessage', 'peer' => InputPeer, 'msg_id' => int, 'user_id' => int];
```
Or, if you're into Lua:
```lua
inputUserFromMessage={_='inputUserFromMessage', peer=InputPeer, msg_id=int, user_id=int}
```