MadelineProtoDocs/docs/API_docs/constructors/inputUserFromMessage.md
2019-06-23 13:07:51 +02:00

41 lines
879 B
Markdown

---
title: inputUserFromMessage
description: User from message
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputUserFromMessage
[Back to constructors index](index.md)
User from message
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|Peer|
|msg\_id|[int](../types/int.md) | Yes|Message ID|
|user\_id|[int](../types/int.md) | Yes|User ID|
### 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}
```