telegram api method · layer 229 · #d30d78d4
messages.sendReaction
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
big | true | Whether a bigger and longer reaction should be shown |
add_to_recent | true | Whether to add this reaction to the recent reactions list ». |
peer | InputPeer | Peer |
msg_id | int | Message ID to react to |
reaction | Vector<Reaction> | A list of reactions (doesn't accept reactionPaid constructors, use messages.sendPaidReaction to send paid reactions, instead). |
returns
errors (18)
| 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_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 400 | CUSTOM_REACTIONS_TOO_MANY | Too many custom reactions were specified. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | MESSAGE_NOT_MODIFIED | The provided message data is identical to the previous message data, the message wasn't modified. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_EMPTY | Empty reaction provided. |
| 400 | REACTION_INVALID | The specified reaction is invalid. |
| 400 | REACTIONS_TOO_MANY | The message already has exactly reactions_uniq_max reaction emojis, you can't react with a new emoji, see the docs for more info ». |
| 400 | USER_BANNED_IN_CHANNEL | You're banned from sending messages in supergroups/channels. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
| 403 | USER_BANNED_IN_CHANNEL | You're banned from sending messages in supergroups/channels. |
history
present in layers 136–229 · constructor id changed 1×
| id | layers |
|---|---|
| #25690ce4 | 136–144 |
| #d30d78d4 | 145–229 |