aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index c1db29e..652c8f2 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -48,7 +48,9 @@ def sha1_hex(string: str) -> str:
def hash_from_ts(ts: SlackTs) -> str:
- return sha1_hex(str(ts))
+ hex_str = sha1_hex(str(ts))
+ only_letters = hex_str.translate(str.maketrans("0123456789", "ghijklmnop"))
+ return only_letters
class SlackConversationMessageHashes(Dict[SlackTs, str]):