telegram api constructor · layer 229 · #ffda656d

messages.sponsoredMessages

A set of sponsored messages associated to a channel

definition

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 · other constructors: messages.sponsoredMessagesEmpty

history

present in layers 132–229 · constructor id changed 2×

idlayers
#65a4c7d5132–147
#c9ee1d87148–204
#ffda656d205–229