Skip to main content

sponsoredPeer

A sponsored peer.

type tg.SponsoredPeer struct { /* ... */ }

Fields

NameTypeRequiredDescription
RandomID[]byteyesID of the sponsored peer, to be passed to messages.viewSponsoredMessage, messages clickSponsoredMessage or messages.reportSponsoredMessage (the same methods used for sponsored messages &raquo).
PeerPeerClassyesThe sponsored peer.
SponsorInfostringIf set, contains additional information about the sponsor to be shown along with the peer.
AdditionalInfostringIf set, contains additional information about the sponsored message to be shown along with the peer.

References