telegram api method · layer 229 · #d30d78d4

messages.sendReaction

usable by users and bots

React to message.

definition

messages.sendReaction#d30d78d4 flags:# big:flags.1?true add_to_recent:flags.2?true peer:InputPeer msg_id:int reaction:flags.0?Vector<Reaction> = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
bigflags.1?trueWhether a bigger and longer reaction should be shown
add_to_recentflags.2?trueWhether to add this reaction to the recent reactions list ».
peerInputPeerPeer
msg_idintMessage ID to react to
reactionflags.0?Vector<Reaction>A list of reactions (doesn't accept reactionPaid constructors, use messages.sendPaidReaction to send paid reactions, instead).

returns

Updates

errors (18)

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_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_WRITE_FORBIDDENYou can't write in this chat.
400CUSTOM_REACTIONS_TOO_MANYToo many custom reactions were specified.
400DOCUMENT_INVALIDThe specified document is invalid.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400MESSAGE_NOT_MODIFIEDThe provided message data is identical to the previous message data, the message wasn't modified.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
400REACTION_EMPTYEmpty reaction provided.
400REACTION_INVALIDThe specified reaction is invalid.
400REACTIONS_TOO_MANYThe message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info ».
400USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.
403USER_BANNED_IN_CHANNELYou're banned from sending messages in supergroups/channels.

history

present in layers 136–229 · constructor id changed 1×

idlayers
#25690ce4136–144
#d30d78d4145–229