Link Search Menu Expand Document

Constructor: messages.sponsoredMessages

Back to constructors index

A set of sponsored messages associated to a channel

Attributes:

NameTypeRequiredDescription
posts_betweenintOptionalIf set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.
start_delayintOptionalFor sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad.
between_delayintOptionalFor sponsored messages to show on channel videos », the number of seconds to wait after the previous ad is hidden, before showing the next ad.
messagesArray of SponsoredMessageYesSponsored messages
chatsArray of ChatYesChats mentioned in the sponsored messages
usersArray of UserYesUsers 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]];