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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
posts_between | int | If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages. |
start_delay | int | For sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad. |
between_delay | int | 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 | Vector<SponsoredMessage> | Sponsored messages |
chats | Vector<Chat> | Chats mentioned in the sponsored messages |
users | Vector<User> | Users mentioned in the sponsored messages |
type
messages.SponsoredMessages · other constructors: messages.sponsoredMessagesEmpty
history
present in layers 132–229 · constructor id changed 2×
| id | layers |
|---|---|
| #65a4c7d5 | 132–147 |
| #c9ee1d87 | 148–204 |
| #ffda656d | 205–229 |