G-Drive guide for catuserbot
π<ll>// Ο.$ //<ll>πopen this https://da.gd/so63O and login with your gmail(the drive which you are going to link)
This plugin also requires the PRIVATE_GROUP_BOT_API_ID to be set. if it was not setted then refer this message
Now select create project , accept the Terms of Service, and select your Country.
Then click on agree and continue
Now Click on Get Credentials button.
Then In the new screen, You need to follow these
Which API are you using?select Google Drive API from the drop down.
For Where will you be calling the API from? select Other UI (e.g. Windows, CLI tool)
For What data will you be accessing? select User data.
Click on What credentials do I need?
Now a pop up appears as below click on SET UP CONSENT SCREEN in that pop up
Now click on external and click on create
Now in the New tab Enter the application name and scroll to bottom and click on save
Now tab changes to
Close these tab and go to previous tab . and refresh it and
click on Create OAuth client id
then click on Done button
now click on create credentials
and then on OAuth client ID
here in the new tab in the application drop down click on desktop app
and then finally on create button then go back and click on the following edit symbol as shown in the following image
now you will find your both G_DRIVE_CLIENT_ID and G_DRIVE_CLIENT_SECRET set them in herpoku vars with the client Id and Client secret respectively
Now in the private group send a file and tag it and reply .ugdrive
a link will be appeared in the chat as follows
Open the link in your browser, and login to the Google Drive account.
This need not be the same account that you created your API in.
After login, it will display a code as above .
copy that code and reply to link in the group as shown
now type .ls and check whether auth_token.txt is in the files or not
if it is not present then do the process again from the .ugdrive
if it is present simply type this and send in the group
.bash cat ./auth_token.txt
then you end up with the message like shown below
Copy the entire output, and paste it in Heroku Var , with key G_DRIVE_AUTH_TOKEN_DATA .
and check gdrive it will be working