diff --git a/docs/chat/02-message-types/05-Message-Type-Reaction.mdx b/docs/chat/02-message-types/05-Message-Type-Reaction.mdx index 90741c0ad..5d3491a79 100644 --- a/docs/chat/02-message-types/05-Message-Type-Reaction.mdx +++ b/docs/chat/02-message-types/05-Message-Type-Reaction.mdx @@ -28,7 +28,6 @@ import TabItem from '@theme/TabItem'; const aliceMessagesBob = await userAlice.chat.send(recipient, { type: 'Reaction', content: '👍', // content can be eliminated - action: 'ThumbsUp', // can be "ThumbsUp", "ThumbsDown", "Heart", "Clap", "Laugh", "Sad", etc reference: 'bafyreia2okco5ocdxmoxon72erviypaht74u3dqunf3vydu237ybju4kw4', // pass in the reference to the message hash that this reaction is intended for }); ``` @@ -48,7 +47,6 @@ When sending a message, you can customize the following params | _`message`_ | `object` | - | - | Configuration for message to be sent | | - | _`message.type`_ | `Meta` | `Text` | Type of message Content | | - | _`message.content`_ | `string` | - | Emoji Symbol - 👍, 👎, ❤️, 👏, 😄, 😢 | -| - | _`options.action`_ | `string`, choose from `ThumbsUp`, `ThumbsDown`, `Heart`, `Clap`, `Laugh`, `Sad` | - | Action that is getting applied in the Meta message action | -| - | _`options.reference`_ | `{ affected : string[]: arbitrary?: { [key: string]: any } }` | - | Pass in the reference to the message hash that this reaction is intended for | +| - | _`options.reference`_ | `string` | - | Pass in the reference to the message hash that this reaction is intended for | > Note: Parameters _`in this style`_ are mandatory. diff --git a/docs/chat/02-message-types/06-Message-Type-Meta.mdx b/docs/chat/02-message-types/06-Message-Type-Meta.mdx index d0318b3d4..69b6d467b 100644 --- a/docs/chat/02-message-types/06-Message-Type-Meta.mdx +++ b/docs/chat/02-message-types/06-Message-Type-Meta.mdx @@ -28,7 +28,6 @@ import TabItem from '@theme/TabItem'; const aliceMessagesBob = await userAlice.chat.send(recipient, { type: 'Meta', content: "Alice.eth create the grp 'xyz'", // content can be eliminated - action: "CreateGroup", // can be "AddMember", "RemoveMember", "PromoteAdmin", etc info: { // any added info that is not visible but can be programmatically understood affected: [], // recipients // this can be array arbitary: { // optional, can have anything, never shown based on type @@ -52,8 +51,7 @@ When sending a message, you can customize the following params | _`recipient`_ | `string` | - | - | [Recipient supports a number of address format](/docs/chat/supported-wallet-standards/ 'Supported wallet standards for Push Chat') including wallet address, chain agnostic wallet address, NFT addresses or even chatid which is useful in groups | | _`message`_ | `object` | - | - | Configuration for message to be sent | | - | _`message.type`_ | `Meta` | `Text` | Type of message Content | -| - | _`message.content`_ | `string` | - | Message Content | -| - | _`options.action`_ | `string`, choose from `CreateGroup`, `AddMember`, `RemoveMember`, `PromoteAdmin`, `DemoteAdmin`, `UpdareGroupinfo` | - | Action that is getting applied in the Meta message action | +| - | _`message.content`_ | `CREATE_GROUP` or `ADD_MEMBER` or `REMOVE_MEMBER` or `ASSIGN_MEMBER_PRIVILEGE` or `UPDATE_GROUP` or `UPDATE_GROUP_PROFILE` or `UPDATE_GROUP_META` or `USER_INTERACTION` or `CREATE_SPACE` or `ADD_LISTENER` or `REMOVE_LISTENER` or `ASSIGN_LISTENER_PRIVILEGE` or `ASSIGN_SPEAKER_PRIVILEGE` or `ASSIGN_COHOST_PRIVILEGE` | - | Message Content | | - | _`options.info`_ | `{ affected : string[]: arbitrary?: { [key: string]: any } }` | - | Pass recipients in the affected array list, any arbitary data if applicable can be passed in arbitary object | > Note: Parameters _`in this style`_ are mandatory.