Link Search Menu Expand Document

Constructor: sponsoredPeer

Back to constructors index

A sponsored peer.

Attributes:

NameTypeRequiredDescription
random_idbytesYesID of the sponsored peer, to be passed to messages.viewSponsoredMessage, messages.clickSponsoredMessage or messages.reportSponsoredMessage (the same methods used for sponsored messages &raquo).
peerlongYesThe sponsored peer.
sponsor_infostringOptionalIf set, contains additional information about the sponsor to be shown along with the peer.
additional_infostringOptionalIf set, contains additional information about the sponsored message to be shown along with the peer.

Type: SponsoredPeer

Example:

$sponsoredPeer = ['_' => 'sponsoredPeer', 'random_id' => 'bytes', 'peer' => long, 'sponsor_info' => 'string', 'additional_info' => 'string'];