channels.UpdatePaidMessagesPrice

class pyrogram.raw.functions.channels.UpdatePaidMessagesPrice

Enable or disable paid messages » in this supergroup or monoforum.

Details:
  • Layer: 223

  • 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

TL Schema

channels.updatePaidMessagesPrice#4b12327b
flags:#
broadcast_messages_allowed:flags.0?true
channel:InputChannel
send_paid_messages_stars:long

= Updates

Parameter Tree

UpdatePaidMessagesPrice
├── broadcast_messages_allowedtrue (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── send_paid_messages_starslong

Example

await app.invoke(
    UpdatePaidMessagesPrice(
        broadcast_messages_allowed=None,
        channel=await app.resolve_channel(chat_id),
        send_paid_messages_stars=0,
    )
)