Layer 227
ChannelsUpdatePaidMessagesPrice
Enable or disable paid messages in this supergroup or monoforum.
method
Users
channels.updatePaidMessagesPrice#4b12327b flags:# broadcast_messages_allowed:flags.0?true channel:InputChannel send_paid_messages_stars:long = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| BroadcastMessagesAllowed | flags .0? true | Only usable for channels, enables or disables the associated monoforum aka direct messages. |
| Channel | InputChannel | Pass the supergroup ID for supergroups and the ID of the channel to modify the setting in the associated monoforum. |
| SendPaidMessagesStars | long | Specifies the required amount of Telegram Stars users must pay to send messages to the supergroup or monoforum. |
Returns
UpdatesGogram Example
// ChannelsUpdatePaidMessagesPrice - positional arguments result, err := client.ChannelsUpdatePaidMessagesPrice(nil, &tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, int64(1234567890)) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_MONOFORUM_UNSUPPORTED | Monoforums do not support this feature. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
| 400 | STARS_AMOUNT_INVALID | The specified amount in stars is invalid. |