Layer 220
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
Flags # Flags, see TL conditional fields
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

Gogram Example

// Creating MessagesSponsoredMessages constructor
obj := &tg.MessagesSponsoredMessages{
    Messages: []tg.SponsoredMessage{&tg.SponsoredMessage{}},
    Chats: []tg.Chat{&tg.Chat{}},
    Users: []tg.User{&tg.User{}},

    // Optional fields:
    // PostsBetween: 0,
    // StartDelay: 0,
    // BetweenDelay: 0,
}