sponsoredPeer

A sponsored peer.

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

Parameters

Name Type Description
flags # Flags, see TL conditional fields
random_id bytes ID 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.
peer Peer The sponsored peer.
sponsor_info flags.0?string If set, contains additional information about the sponsor to be shown along with the peer.
additional_info flags.1?string If set, contains additional information about the sponsored message to be shown along with the peer.

Type

SponsoredPeer

Related pages

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.

Sponsored messages

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

Working with Updates

How to subscribe to updates and handle them properly.