-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to send Teams messages as HTML content #224
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -465,6 +465,19 @@ send_chat_message: | |
required: true | ||
selector: | ||
text: | ||
content_type: | ||
name: Content Type | ||
description: The type of content to send, html if you are sending a HTML message or text for plain text | ||
example: text | ||
required: false | ||
selector: | ||
select: | ||
mode: dropdown | ||
options: | ||
- label: HTML | ||
Comment on lines
+468
to
+477
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (code_refinement): Consider marking 'content_type' as required if it's critical for message formatting. If the content type is essential for the message to be formatted correctly, it might be better to enforce its specification by making it required. |
||
value: html | ||
- label: Text | ||
value: text | ||
|
||
update_user_status: | ||
name: Update user Teams status | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -148,6 +148,7 @@ target: | |||||||||||
data: | ||||||||||||
chat_id: xxxxxxxxxxxxxxxxxxxxxxxxx | ||||||||||||
message: Hello world | ||||||||||||
content_type: text | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (code_clarification): Update documentation to explain the optional nature of 'content_type' and its defaults. Expanding the documentation to clarify when and how to use the 'content_type' field can enhance user understanding and correct usage of the API.
Suggested change
|
||||||||||||
``` | ||||||||||||
|
||||||||||||
## Status Services | ||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code_refinement): Validate 'content_type' parameter to ensure it only accepts 'text' or 'html'.
Adding a validation step for 'content_type' can prevent errors from unsupported types and ensure that the function behaves as expected.