slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

Channels.history response message timestamp #82

Closed dominikeinkemmer closed 6 years ago

dominikeinkemmer commented 6 years ago

Hi,

I'm currently trying to develop a bot for our organization that parses messages of a channel to extract date information from a channels messages. However, in order to do that I sometimes need a references date (to extract dates from strings like tomorrow, etc.).

The issue I have is that the ts field of the response from channels.history is not a proper timestamp but the unique message identifier (if I read that correctly #7 ) so I can't get the created date for the message. Is there anyway that I can extract the correct timestamp from the ts field or get the created-timestamp in any other way?

Thanks in advance.

namedgraph commented 5 years ago

So what was the solution here?