Microsoft Teams --Get All Chat Messages

I am working on a small PoC where i have a meals group in teams where employees send a message when there are on leave on a particular date. This might save some amount for the organisation.

I am using a teams node

This gets all the chat messages of that particular group. Here i have a issue where at the start (when i added the test user to the group) the teams node used to execute within 30 seconds. Later as soon as the messages increased it started taking time to execute like 3 min and even it fails sometimes.

Also it gets all the messages from the time of join. Like if it’s been a month since the test user has joined the group. It gets all the messages from the month.

I tried of using any webhook in teams but there are webhooks for only channels.

So i just wanna know how can i reduce this execution time.