I am writing an slack app for reading the messages from private channel and writing to database. I use method conversation.history for this purpose. My approach is
- Call the Slack api with parameters limit=100,channelId ,bot token and store the messages in database along with the timestamp ts for message
- Fetch next 100 by calling method with prams as limit=100,channelid,bot token,oldest= ts (timestamp of oldest record inserted in database By the API documentation it says latest is default to value now .
In this case I should get next 100 records but I am getting nothing .
And I don't know how usually convert a date time like 12 Dec 2020 5:40:00 (12/03/2020) to timestamp like 1607017252.113300
I am using C# language for doing this whole work.