Constructor: sponsoredPeer
A sponsored peer.
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| random_id | bytes | Yes | ID of the sponsored peer, to be passed to messages.viewSponsoredMessage, messages.clickSponsoredMessage or messages.reportSponsoredMessage (the same methods used for sponsored messages »). |
| peer | long | Yes | The sponsored peer. |
| sponsor_info | string | Optional | If set, contains additional information about the sponsor to be shown along with the peer. |
| additional_info | string | Optional | If 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'];