MadelineProtoDocs/old_docs/API_docs_v104/constructors/inputChannelFromMessage.md

41 lines
1.2 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: inputChannelFromMessage
2019-12-27 17:48:04 +01:00
description: Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.
2019-08-15 20:25:16 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputChannelFromMessage
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat.
2019-08-15 20:25:16 +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 channel was seen|
|msg\_id|[int](../types/int.md) | Yes|The message ID in the chat where the channel was seen|
|channel\_id|[int](../types/int.md) | Yes|The channel ID|
2019-08-15 20:25:16 +02:00
### 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}
```