Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hello Rajitha Perera,
Thanks for posting!
As per the Microsoft Graph Documentation, Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel.
Please refer the below link for same.
Note: Delta will only return messages within the last eight months. You can use GET /teams/{team-id}/channels/{channel-id}/messages to retrieve older messages.
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".