diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-14 19:52:44 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 291ce07645f63614b3b00fbe20063d6ef0161bef (patch) | |
tree | f6b2d0f7412f1f3ac2c02d8c2ab2957d1dc338fa /slack/slack_message.py | |
parent | 184bf08360003538179e3c19b2711016c823eadd (diff) | |
download | wee-slack-291ce07645f63614b3b00fbe20063d6ef0161bef.tar.gz |
Support sending messages
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r-- | slack/slack_message.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py index ddb2ceb..c986edd 100644 --- a/slack/slack_message.py +++ b/slack/slack_message.py @@ -19,7 +19,7 @@ from slack.python_compatibility import removeprefix, removesuffix from slack.shared import shared from slack.slack_user import SlackBot, SlackUser, format_bot_nick, nick_color from slack.task import gather -from slack.util import intersperse, with_color +from slack.util import intersperse, unhtmlescape, with_color if TYPE_CHECKING: from slack_api.slack_conversations_history import SlackMessage as SlackMessageDict @@ -42,10 +42,6 @@ if TYPE_CHECKING: from slack.slack_workspace import SlackWorkspace -def unhtmlescape(text: str) -> str: - return text.replace("<", "<").replace(">", ">").replace("&", "&") - - def format_date(timestamp: int, token_string: str, link: Optional[str] = None) -> str: ref_datetime = datetime.fromtimestamp(timestamp) link_suffix = f" ({link})" if link else "" |