video guide
Bot link: @api_kpbot
Bot commands
/ologin - login to the bot
/oupload reply to a file or /oupload direct link - upload files
/reoauth - create new token
/reologin - login with new credentials
Easy Method
1.Authenticate with OneDrive
2.log in to the bot
1.Authenticate with OneDrive
Go to https://onedrive.cloudkp.com and cick Authenticate with OneDrive
2.log in to the bot
/ologin1 <yourcode> to login with bot
Advanced Method: Upload files to OneDrive using your own developer app.
1. Create onedrive developer app
2. Get app id (client id)
3.Create app secret (client secret)
4.Add redirect uri
5.Login to the bot using these credentials
1. Create onedrive developer app
first go to https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview and create new developer app
2. Get app id (client id)
You can get app id in Overview sectionThis is your client ID. Store it. We will need it later.
3.Create app secret (client secret)
This is your client secret store it safe we need it later
4.Add redirect uri
Go to authentication and click add a platform
Add http://localhost as redirect url then press configure
Thats all now your redirect url is http://localhost
5.Login to the bot using these credentials
type /ologin2 and enter you client id , client secret and redirect url and follow the steps
This is how Upload Files to One Drive Using a Telegram Bot if you have any issues watch youtube video or ask in comment