channels.UpdatePaidMessagesPrice
- class pyrogram.raw.functions.channels.UpdatePaidMessagesPrice
Enable or disable paid messages » in this supergroup or monoforum.
- Details:
Layer:
223ID:
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 (
int64-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:
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_allowed →
true (optional)├── channel →
InputChannel│ ├──
InputChannelEmpty│ ├──
InputChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── send_paid_messages_stars →
longExample
await app.invoke(
UpdatePaidMessagesPrice(
broadcast_messages_allowed=None,
channel=await app.resolve_channel(chat_id),
send_paid_messages_stars=0,
)
)