channels.UpdatePaidMessagesPrice#

class pyrogram.raw.functions.channels.UpdatePaidMessagesPrice#

Enable or disable paid messages in this supergroup or monoforum. Also used to enable or disable monoforums aka direct messages in a channel. Note that passing the ID of the monoforum itself to channel will return a CHANNEL_MONOFORUM_UNSUPPORTED error: pass the ID of the associated channel to edit the settings of the associated monoforum, instead.

Details:
  • Layer: 211

  • ID: 4B12327B

Parameters:
channel (InputChannel):

Pass the supergroup ID for supergroups and the ID of the channel to modify the setting in the associated monoforum.

send_paid_messages_stars (int 64-bit):

Specifies the required amount of Telegram Stars users must pay to send messages to the supergroup or monoforum.

broadcast_messages_allowed (bool, optional):

Only usable for channels, enables or disables the associated monoforum aka direct messages.

Returns:

Updates