How to set-up G-Drive

How to set-up G-Drive

Kryptic



Generating CLIENT ID & SECRET:

1)Open This Link

2)Click on "Continue"

3)Wait for couple of seconds for Google to make a new Project for your API

4)Then click on "Go to Credentials"

5) On the next Screen choose Google Drive API & Chrome application from the Drop Down options

6)Check The "User Data Option"

7) Then tap on "What credentials do I need"?

8)Now Click on "Set Up Consent Screen"

9)ONLY Fill Application Name - you can put any random Name there

10)Now Click On Save

11)On the next page click on "Create Credentials"

12)Select OAuth client ID

13)Tick on "Others"

14)And finally click on "Create"

15)This will give you your "CLIENT ID & SECRET"

Setting up Heroku Config Vars:

1)Put the following Key in Heroku Config vars with their respective values:

•G_DRIVE_CLIENT_ID

•G_DRIVE_CLIENT_SECRET

•GDRIVE_FOLDER_ID Make a new Folder in Drive, copy and paste the link in the Value

•TEMP_DOWNLOAD_DIRECTORY - ./DOWNLOADS/ ("./DOWNLOADS/" is the value of the Key do not change it!)


Generating Auth Token

1)Open Telegram and do .gdrive on a sticker or a file.

2) Since you do not have the Auth Token it will send an auth link to ur Bot Logging Group (Make sure your bot log group is a normal group and not a Super Group)

3)Open that link and follow the On-Screen instructions

4)After doing that it will show you a special code copy that code.

5)Now do the .gdrive again on a sticker in your bot log and paste the code which you copied as a reply to the link (Do this fast)

6)Wait for 2-5 seconds and then do

.term cat ./auth_token.txt

7)It will generate a auth token

8)Copy the Auth Token (Starts from { ends in })

9)Now go to Heroku Vars and make a new Key called G_DRIVE_AUTH_TOKEN_DATA. Paste the auth_token you copied and click on "Save"

10)Done! You've successfully set up the Gdrive


Go and test it!

If it still fails, upload your logs to dogbin.com and ask in the group

Report Page