diff options
-rw-r--r-- | slack/slack_buffer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py index f5db14a..4c88d4c 100644 --- a/slack/slack_buffer.py +++ b/slack/slack_buffer.py @@ -430,10 +430,13 @@ class SlackBuffer(ABC): ) -> Optional[SlackTs]: if not hash_or_index: return self.ts_from_index(1, message_filter) + ts_from_hash = self.ts_from_hash(hash_or_index) + if ts_from_hash is not None: + return ts_from_hash elif hash_or_index.isdigit(): return self.ts_from_index(int(hash_or_index), message_filter) else: - return self.ts_from_hash(hash_or_index) + return None async def post_message( self, |