telegram api method · layer 229 · #4b12327b

channels.updatePaidMessagesPrice

usable by users

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

nametypedescription
flags#Flags, see TL conditional fields
broadcast_messages_allowedflags.0?trueOnly usable for channels, enables or disables the associated monoforum aka direct messages.
channelInputChannelPass the supergroup ID for supergroups and the ID of the channel to modify the setting in the associated monoforum.
send_paid_messages_starslongSpecifies the required amount of Telegram Stars users must pay to send messages to the supergroup or monoforum.

returns

Updates

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_MONOFORUM_UNSUPPORTEDMonoforums do not support this feature.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400STARS_AMOUNT_INVALIDThe specified amount in stars is invalid.
401AUTH_KEY_UNREGISTEREDThe 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×

idlayers
#fc84653f200–203
#4b12327b204–229