sponsoredPeer #

A sponsored peer.

Layer 223

sponsoredPeer#c69708d3 flags:# random_id:bytes peer:Peer sponsor_info:flags.0?string additional_info:flags.1?string = SponsoredPeer;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
random_idbytesID of the sponsored peer, to be passed to messages.viewSponsoredMessage, messages.clickSponsoredMessage or messages.reportSponsoredMessage (the same methods used for sponsored messages &raquo). See here » for more info on random ID deduplication and updateMessageID mapping.
peerPeerThe sponsored peer.
sponsor_infoflags.0?stringIf set, contains additional information about the sponsor to be shown along with the peer.
additional_infoflags.1?stringIf set, contains additional information about the sponsored message to be shown along with the peer.

Type #

SponsoredPeer

messages.viewSponsoredMessage #

Mark a specific sponsored message » as read

messages.clickSponsoredMessage #

Informs the server that the user has interacted with a sponsored message in one of the ways listed here ».

messages.reportSponsoredMessage #

Report a sponsored message », see here » for more info on the full flow.

How clients should fetch, display and interact with sponsored messages.

Working with Updates #

How to subscribe to updates and handle them properly.