messages.SponsoredMessages#

class pyrogram.raw.types.messages.SponsoredMessages#

A set of sponsored messages associated to a channel

Constructor of SponsoredMessages.

Details:
  • Layer: 220

  • ID: FFDA656D

Parameters:
  • messages (List of SponsoredMessage) – Sponsored messages

  • chats (List of Chat) – Chats mentioned in the sponsored messages

  • users (List of User) – Users mentioned in the sponsored messages

  • posts_between (int 32-bit, optional) – 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 32-bit, optional) – For sponsored messages to show on channel videos », the number of seconds to wait before showing the first ad.

  • between_delay (int 32-bit, optional) – 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.

Functions:

This object can be returned by 1 function.

messages.GetSponsoredMessages

Get a list of sponsored messages for a peer, see here for more info.