--- title: messageActionChatAddUser description: Message action chat add user image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: messageActionChatAddUser [Back to constructors index](index.md) Message action chat add user ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |user\_id|[int](../types/int.md) | Yes|User ID| ### Type: [MessageAction](../types/MessageAction.md) ### Example: ```php $messageActionChatAddUser = ['_' => 'messageActionChatAddUser', 'user_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` {"_": "messageActionChatAddUser", "user_id": int} ``` Or, if you're into Lua: ```lua messageActionChatAddUser={_='messageActionChatAddUser', user_id=int} ```