channels.ExportMessageLink

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

Details:
  • Layer: 227

  • 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
├── grouped → true (optional)
├── thread → true (optional)
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── id → int

Example

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