messages.getSponsoredMessages

Get a list of sponsored messages for a peer, see here » for more info.

 Method schema is available as of layer 205. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer InputPeer The currently open channel/bot.
msg_id flags.0?int  

Result

messages.SponsoredMessages

Possible errors

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

Related pages

Sponsored messages