channels.updatePaidMessagesPrice
Enable or disable paid messages » in this supergroup or monoforum.
Enable or disable [paid messages »](https://core.telegram.org/api/paid-messages.md) in this [supergroup](https://core.telegram.org/api/channel.md) or [monoforum](https://core.telegram.org/api/monoforum.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
broadcast_messages_allowed | true | Nein | Only usable for channels, enables or disables the associated [monoforum aka direct messages](https://core.telegram.org/api/monoforum.md). |
channel | InputChannel | Ja | Pass the supergroup ID for supergroups and the ID of the [channel](https://core.telegram.org/api/channel.md) to modify the setting in the associated monoforum. |
send_paid_messages_stars | long | Ja | Specifies the required amount of [Telegram Stars](https://core.telegram.org/api/stars.md) users must pay to send messages to the supergroup or monoforum. |
Antworten
Updates
MTProto RPC
- 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
- 400 · CHANNEL_MONOFORUM_UNSUPPORTED – [Monoforen](https://core.telegram.org/api/channel.md#monoforums) unterstützen diese Funktion nicht.
- 400 · CHAT_NOT_MODIFIED — An den Chat-Informationen wurden keine Änderungen vorgenommen, da die neuen Informationen, die Sie übergeben haben, mit den aktuellen Informationen identisch sind.
- 400 · STARS_AMOUNT_INVALID — Der angegebene Betrag in Sternen ist ungültig.