Skip to main content

messages.sponsoredMessages

A set of sponsored messages associated to a channel

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

Implements messages.SponsoredMessages.

Fields

NameTypeRequiredDescription
PostsBetweenintIf set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.
StartDelayintFor sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad.
BetweenDelayintFor 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