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

41 lines
921 B
Markdown

---
title: inputChannelFromMessage
description: Channel from message
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputChannelFromMessage
[Back to constructors index](index.md)
Channel 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|
|channel\_id|[int](../types/int.md) | Yes|Channel ID|
### Type: [InputChannel](../types/InputChannel.md)
### Example:
```php
$inputChannelFromMessage = ['_' => 'inputChannelFromMessage', 'peer' => InputPeer, 'msg_id' => int, 'channel_id' => int];
```
Or, if you're into Lua:
```lua
inputChannelFromMessage={_='inputChannelFromMessage', peer=InputPeer, msg_id=int, channel_id=int}
```