A while ago, I was finding some solutions to automate microsoft teams on my computer, here is the solution if you don't want to enter late in class or you are lazy enough to start your mobile and get a link and join the classes or else you have forgotten the time table or the attendence is compulsory. Then what are you looking for turn on your computer and get started.
Note: 1. Download the folder "Automation" and paste on Desktop
2. Make sure you have downloaded "Google Chrome" & "Python"
This script will extract the timing of your laptop and your teams calender and it will join the classes, you have to enter your credentials and password in the config.json file and save it .It will automatically sign in and everything will be done by itself.If so the classes got over earlier than the calender time then if participates are less than 5 it will automatically leave or else it will leave and the end of the class.
Google Drive -https://drive.google.com/drive/folder...
PIP - https://bootstrap.pypa.io/get-pip.py
Python - https://www.python.org/downloads/