Whenever a float timestamp is provided into the thread_ts of the chat_postMessage method slack returns {'ok': True, ... } in its response but no thread is created. The same message with a string as a timestamp will create a thread and post message as expected. I understand that the intended use is with a string. However, I find it strange that slackclient does not catch any type errors like this, or if it internally cast it to a string, something definitely goes wrong. Is that a correct response to a float correct?
Reproducible in:
Python 3.8.0
slackclient==2.9.1
Steps to reproduce:
...
rs = web_client.chat_postMessage(channel=SLACK_CHANNEL, text="test msg") # assume that it's Ok.
print(rs['ts']) # "1602167511.000300"
# Correct usage
rs = web_client.chat_postMessage(channel=SLACK_CHANNEL, text="thread test", thread_ts="1602167511.000300")
print(rs.data) # this will show that response is Ok
# Bad timestamp
rs = web_client.chat_postMessage(channel=SLACK_CHANNEL, text="thread test", thread_ts=1602167511.000300)
print(rs.data) # this will show that response is Ok as well
Whenever a float timestamp is provided into the
thread_tsof thechat_postMessagemethod slack returns{'ok': True, ... }in its response but no thread is created. The same message with a string as a timestamp will create a thread and post message as expected. I understand that the intended use is with a string. However, I find it strange thatslackclientdoes not catch any type errors like this, or if it internally cast it to a string, something definitely goes wrong. Is that a correct response to a float correct?Reproducible in:
Python 3.8.0
slackclient==2.9.1
Steps to reproduce: