channels.ExportMessageLink

Get link and embed info of a message in a channel/supergroup

Details:
  • Layer: 223

  • ID: E63FADEB

  • channel (InputChannel) – Channel

  • id (int 32-bit) – Message ID

  • grouped (bool, optional) – Whether to include other grouped media (for albums)

  • thread (bool, optional) – Whether to also include a thread ID, if available, inside of the link

ExportedMessageLink

TL Schema

channels.exportMessageLink#e63fadeb
flags:#
grouped:flags.0?true
thread:flags.1?true
channel:InputChannel
id:int

= ExportedMessageLink

Parameter Tree

ExportMessageLink
├── groupedtrue (optional)
├── threadtrue (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── idint

Example

await app.invoke(
    ExportMessageLink(
        grouped=None,
        thread=None,
        channel=await app.resolve_channel(chat_id),
        id=0,
    )
)