This bot was only possibly easy made using the https://github.com/luisbrandino/team-scrap repository.
This bot was created for sending all assignments on a telegram chat
Before executing this bot you need to install the following things:
This bot was made with Python so you need to download it
🐍 Download Python3 here
Inside the project folder, on cmd or terminal, this this code to install the dependencies:
python -m pip install -r requirements.txt
python3 -m pip install -r requirements.txt
src\main.py
python3 src/main.py
When the script is started for the first time, it will be necessary to inform your Token that gives access to the API onenote.com
To obtain this Token you need to find one file inside google devtools, here is a tutorial with images:
-
Log in to your Microsoft Teams account and go to the teams page
-
After that, press F12 and go to the Network tab on devtools
-
Then go to the Tasks tab and wait for an item called classes or work?... to appear on devtools
-
Click on that item, go to the Headers tab and scroll down until you find Request headers, then view the header authorization and copy all letters and numbers after the word Carrier * or Bearer
After following these steps, you have your Token!
To start using the program, just paste this code when prompted
NOTE: This Token may expire after some time and you will need to redo these steps, as long as the Token is valid, it will be saved on your machine encrypted for use