Reactions

class matterapi.endpoints.async_api.ReactionsApi(client: matterapi.client.base.BaseClient, skip_response_parsing: bool = False)

Endpoints for creating, getting and removing emoji reactions.

async delete_reaction(user_id: str, post_id: str, emoji_name: str) matterapi.models.StatusOK

Remove a reaction from a post

Deletes a reaction made by a user from the given post.

Permissions:

Must be user or have manage_system permission.

Api Reference:

DeleteReaction

async get_bulk_reactions(*, json_body: Union[List[str], Dict]) matterapi.models.PostIdToReactionsMap

Bulk get the reaction for posts

Get a list of reactions made by all users to a given post.

Permissions:

Must have read_channel permission for the channel the post is in.

Minimum Server Version:

5.8

Api Reference:

GetBulkReactions

async get_reactions(post_id: str) List[matterapi.models.Reaction]

Get a list of reactions to a post

Get a list of reactions made by all users to a given post.

Permissions:

Must have read_channel permission for the channel the post is in.

Api Reference:

GetReactions

async save_reaction(*, json_body: Union[matterapi.models.Reaction, Dict]) matterapi.models.Reaction

Create a reaction

Create a reaction.

Permissions:

Must have read_channel permission for the channel the post is in.

Api Reference:

SaveReaction