Hello @SedighehEfaf-6293
I would get started with official documentation on Microsoft Team API:
https://learn.microsoft.com/en-us/graph/teams-concept-overview
https://learn.microsoft.com/en-us/graph/use-the-api
And for any how-to questions like the one above, it might be best to open a separate post on the TechCommunity and get help from Microsoft Teams product team: https://techcommunity.microsoft.com/t5/microsoft-teams/ct-p/MicrosoftTeams