Skip to main content

messages.sponsoredMessages

A set of sponsored messages associated to a channel

type tg.MessagesSponsoredMessages struct { /* ... */ }

Implements messages.SponsoredMessages.

Fields​

NameTypeRequiredDescription
PostsBetweenint—If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.
StartDelayint—For sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad.
BetweenDelayint—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[]SponsoredMessageyesSponsored messages
Chats[]ChatClassyesChats mentioned in the sponsored messages
Users[]UserClassyesUsers mentioned in the sponsored messages

References​