messages.SponsoredMessages#

class pyrogram.raw.types.messages.SponsoredMessages#

A set of sponsored messages associated to a channel.

Constructor of SponsoredMessages.

Details:
  • Layer: 158

  • ID: C9EE1D87

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.

Functions:

This object can be returned by 1 function.

channels.GetSponsoredMessages

Get a list of sponsored messages.