telegram api method · layer 229 · #864b2581

messages.setChatAvailableReactions

usable by users

Change the set of message reactions » that can be used in a certain group, supergroup or channel

definition

messages.setChatAvailableReactions#864b2581 flags:# peer:InputPeer available_reactions:ChatReactions reactions_limit:flags.0?int paid_enabled:flags.1?Bool = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
peerInputPeerGroup where to apply changes
available_reactionsChatReactionsAllowed reaction emojis
reactions_limitflags.0?intThis flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max); this field and the other info set by the method will then be available to users in channelFull and chatFull. If this flag is not set, the previously configured reactions_limit will not be altered.
paid_enabledflags.1?BoolIf this flag is set and a Bool is passed, the method will enable or disable paid message reactions ». If this flag is not set, the previously stored setting will not be changed.

returns

Updates

errors (8)

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.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400DOCUMENT_INVALIDThe specified document is invalid.
400LIMIT_PER_POST_INVALIDThe specified reactions_limit value is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400REACTION_INVALIDThe specified reaction 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 136–229 · constructor id changed 3×

idlayers
#14050ea6136–144
#feb16771145–177
#5a150bd4178–185
#864b2581186–229