Hi there Sagar Bala Saheb
Thanks for using QandA platform
For that, you'll need to integrate it with the Microsoft Bot Framework and Microsoft Graph API. Use the Graph API to monitor your calendar for upcoming meetings. When a meeting starts, have the bot join using API calls. However, direct recording via the bot isn't supported, so you'll need to manage recording through Teams' built-in capabilities or automate it separately. dont forget to get the permissions ans stuff, ill include the docs have a look at these.
https://learn.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/permissions-reference
If this helps kindly accept the response thanks much.