MessageActionPaidMessagesPrice

class pyrogram.raw.types.MessageActionPaidMessagesPrice

The price of paid messages » in this chat was changed.

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: 84B88578

Parameters:
  • stars (int 64-bit) – The new price in Telegram Stars, can be 0 if messages are now free.

  • broadcast_messages_allowed (bool, optional) – Can only be set for channels, if set indicates that direct messages were enabled », otherwise indicates that direct messages were disabled; the price of paid messages is related to the price of direct messages (aka those sent to the associated monoforum).

TL Schema

messageActionPaidMessagesPrice#84b88578
flags:#
broadcast_messages_allowed:flags.0?true
stars:long

= MessageAction

Parameter Tree

MessageActionPaidMessagesPrice
├── broadcast_messages_allowedtrue (optional)
└── starslong

Example

MessageActionPaidMessagesPrice(
    stars=0,
)