telegram api constructor · layer 229 · #c69708d3

sponsoredPeer

A sponsored peer.

definition

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).
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

history

present in layers 201–229

idlayers
#c69708d3201–229