telegram api method · layer 229 · #4b12327b
channels.updatePaidMessagesPrice
Enable or disable paid messages » in this supergroup or monoforum.
definition
channels.updatePaidMessagesPrice#4b12327b flags:# broadcast_messages_allowed:flags.0?true channel:InputChannel send_paid_messages_stars:long = Updates;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
broadcast_messages_allowed | 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. |
send_paid_messages_stars | long | Specifies the required amount of Telegram Stars users must pay to send messages to the supergroup or monoforum. |
returns
errors (6)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 200–229 · constructor id changed 1×
| id | layers |
|---|---|
| #fc84653f | 200–203 |
| #4b12327b | 204–229 |