ReactionClient Class
Client for working with app message reactions for a given conversation/activity.
Initialize the reaction client.
Constructor
ReactionClient(service_url: str, http_client: Client | None = None, api_client_settings: ApiClientSettings | None = None)
Parameters
| Name | Description |
|---|---|
|
service_url
Required
|
The base URL for the Teams service |
|
http_client
|
Optional HTTP client to use. If not provided, a new one will be created. Default value: None
|
|
api_client_settings
|
Optional API client settings. Default value: None
|
Methods
| add |
Adds a reaction on an activity in a conversation. |
| delete |
Removes a reaction from an activity in a conversation. |
add
Adds a reaction on an activity in a conversation.
async add(conversation_id: str, activity_id: str, reaction_type: Literal['like', 'heart', '1f440_eyes', '2705_whiteheavycheckmark', 'launch', '1f4cc_pushpin'] | str) -> None
Parameters
| Name | Description |
|---|---|
|
conversation_id
Required
|
The conversation id. |
|
activity_id
Required
|
The id of the activity to react to. |
|
reaction_type
Required
|
The reaction type (for example: "like", "heart", "laugh", etc.). |
delete
Removes a reaction from an activity in a conversation.
async delete(conversation_id: str, activity_id: str, reaction_type: Literal['like', 'heart', '1f440_eyes', '2705_whiteheavycheckmark', 'launch', '1f4cc_pushpin'] | str) -> None
Parameters
| Name | Description |
|---|---|
|
conversation_id
Required
|
The conversation id. |
|
activity_id
Required
|
The id of the activity the reaction is on. |
|
reaction_type
Required
|
The reaction type to remove (for example: "like", "heart", "laugh", etc.). |