# MessageReactionUpdated

> This object represents a change of a reaction on a message performed by a user

**Category:** Telegram Bot API — Types (A-Z)  
**URL:** https://docs.botlify.cloud/messagereactionupdated  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

This object represents a change of a reaction on a message performed by a user.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| chat | Chat | Always | The chat containing the message the user reacted to |
| message_id | Integer | Always | Unique identifier of the message inside the chat |
| user | User | Optional | The user that changed the reaction, if the user isn't anonymous |
| actor_chat | Chat | Optional | The chat on behalf of which the reaction was changed, if the user is anonymous |
| date | Integer | Always | Date of the change in Unix time |
| old_reaction | Array of ReactionType | Always | Previous list of reaction types that were set by the user |
| new_reaction | Array of ReactionType | Always | New list of reaction types that have been set by the user |

> [!TIP]
> **Botlify Cloud Runtime**
> Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.
