channels.exportMessageLink

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

exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink;
---functions---
channels.exportMessageLink#ceb77163 channel:InputChannel id:int grouped:Bool = ExportedMessageLink;

Parameters

Name Type Description
channel InputChannel Channel
id int Message ID
grouped Bool Whether to include other grouped media (for albums)

Result

ExportedMessageLink

Possible errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup
400 MESSAGE_ID_INVALID The provided message id is invalid

Related pages

Channels

How to handle channels, supergroups, groups, and what's the difference between them.