Layer 228
MessagesSponsoredMessagesObj
A set of sponsored messages associated to a channel
constructor
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 |
|---|---|---|
| PostsBetween | flags .0? 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. |
| StartDelay | flags .1? int | For sponsored messages to show on channel videos, the number of seconds to wait before showing the first ad. |
| BetweenDelay | flags .2? 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 |
Returns
messages.SponsoredMessagesGogram Example
// Creating MessagesSponsoredMessagesObj constructor obj := &tg.MessagesSponsoredMessagesObj{ PostsBetween: nil, StartDelay: nil, BetweenDelay: nil, Messages: []tg.SponsoredMessage{&tg.SponsoredMessageObj{}}, Chats: []tg.Chat{&tg.ChatObj{}}, Users: []tg.User{&tg.UserObj{}}, }