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. |
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, 'messages' => [SponsoredMessage, SponsoredMessage], 'chats' => [Chat, Chat], 'users' => [User, User]];