channels.ExportMessageLink
- class pyrogram.raw.functions.channels.ExportMessageLink
Get link and embed info of a message in a channel/supergroup
- Details:
Layer:
223ID:
E63FADEB
- Parameters:
channel (
InputChannel) – Channelid (
int32-bit) – Message IDgrouped (
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
- Returns:
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│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── id →
intExample
await app.invoke(
ExportMessageLink(
grouped=None,
thread=None,
channel=await app.resolve_channel(chat_id),
id=0,
)
)