I don't think there is direct way to get all messages from teams channel. Here I am telling work around that work for me. I created one microssoft list and I store all the messages there whenever there is new message add to tems channel my power automate flow calls itself and populate the list and from the list I can filter what exactly I want to get.