Have you already tried the Channel resource with the History operation to see if that returns all the messages? It seems to suggest it may do the first part of what you are after, I don’t have a Slack instance running at the moment to test on but I will get one set up for science today.
@Benjamin123 In the Channel History image where it has found no channels there is a little triangle next to it, To the right of that there are 3 cogs. if you click on that there should be a refresh list option.
Just set up a Slack instance and gave it a test, What I had to do was make sure that my Slack Application had the correct scopes so for channel history with OAuth I needed Channels:Read to get the list of channels and Channels:History to get the list of channels.
Once that was done it kind of worked as expected so I set up my first node to get the history.