Constructor: messages.sponsoredMessages
A set of sponsored messages associated to a channel
Attributes:
Name | Type | Required | Description |
---|---|---|---|
posts_between | int | Optional | If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages. |
start_delay | int | Optional | For sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad. |
between_delay | int | Optional | For sponsored messages to show on channel videos », the number of seconds to wait after the previous ad is hidden, before showing the next ad. |
messages | Array of SponsoredMessage | Yes | Sponsored messages |
chats | Array of Chat | Yes | Chats mentioned in the sponsored messages |
users | Array of User | Yes | Users mentioned in the sponsored messages |
Type: messages.SponsoredMessages
Example:
$messages_sponsoredMessages = ['_' => 'messages.sponsoredMessages', 'posts_between' => int, 'start_delay' => int, 'between_delay' => int, 'messages' => [SponsoredMessage, SponsoredMessage], 'chats' => [Chat, Chat], 'users' => [User, User]];