Raw.messages.SponsoredMessages

Raw.messages.SponsoredMessages

A set of sponsored messages associated to a channel

messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;
export namespace Raw {
  export namespace messages {
    export class SponsoredMessages {
      constructor(params: {
        postsBetween?: number;
        messages: Array<Raw.TypeSponsoredMessage>;
        chats: Array<Raw.TypeChat>;
        users: Array<Raw.TypeUser>;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xc9ee1d87

Property

  • postsBetween : number or undefined

    If set, specifies the minimum number of messages between shown sponsored messages; otherwise, only one sponsored message must be shown after all ordinary messages.

  • messages : Array of Raw.TypeSponsoredMessage

    Sponsored messages

  • chats : Array of Raw.TypeChat

    Chats mentioned in the sponsored messages

  • users : Array of Raw.TypeUser

    Users mentioned in the sponsored messages