messages.sponsoredMessages #

A set of sponsored messages associated to a channel

Layer 223

messages.sponsoredMessages#ffda656d flags:# posts_between:flags.0?int start_delay:flags.1?int between_delay:flags.2?int messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
posts_betweenflags.0?intIf set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.
start_delayflags.1?intFor sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad.
between_delayflags.2?intFor sponsored messages to show on channel videos », the number of seconds to wait after the previous ad is hidden, before showing the next ad.
messagesVector<SponsoredMessage>Sponsored messages
chatsVector<Chat>Chats mentioned in the sponsored messages
usersVector<User>Users mentioned in the sponsored messages

Type #

messages.SponsoredMessages

How clients should fetch, display and interact with sponsored messages.