MadelineProtoDocs/old_docs/API_docs_v35/constructors/inputChannelFromMessage.md
2020-06-16 17:50:25 +02:00

1.2 KiB

title description image
inputChannelFromMessage Defines a [min](https://core.telegram.org/api/min) channel that was seen in a certain message of a certain chat. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputChannelFromMessage

Back to constructors index

Defines a min channel that was seen in a certain message of a certain chat.

Attributes:

Name Type Required Description
peer Username, chat ID, Update, Message or InputPeer Optional The chat where the channel was seen
msg_id int Yes The message ID in the chat where the channel was seen
channel_id int Yes The channel ID

Type: InputChannel

Example:

$inputChannelFromMessage = ['_' => 'inputChannelFromMessage', 'peer' => InputPeer, 'msg_id' => int, 'channel_id' => int];

Or, if you're into Lua:

inputChannelFromMessage={_='inputChannelFromMessage', peer=InputPeer, msg_id=int, channel_id=int}