zume2020 / Telegram-bot-Google-Drive

Simple Telegram bot Google Drive integration example
https://zume2020.github.io/Telegram-bot-Google-Drive/
MIT License
54 stars 85 forks source link

I get the following error once the bot starts uploading the file. #4

Closed dhekabai closed 4 years ago

dhekabai commented 4 years ago

2020-05-30 14:17:15,370 - telegram.ext.dispatcher - ERROR - No error handlers ar e registered, logging exception. Traceback (most recent call last): File "C:\Users####\AppData\Roaming\Python\Python37\site-packages\telegram\e xt\dispatcher.py", line 343, in process_update handler.handle_update(update, self, check, context) File "C:\Users####\AppData\Roaming\Python\Python37\site-packages\telegram\e xt\handler.py", line 119, in handle_update return self.callback(update, context) File "bot.py", line 42, in file_handler request = DRIVE.files().create(body=metadata, AttributeError: 'Resource' object has no attribute 'create'

zume2020 commented 4 years ago

Sorry for late reply, have you installed all the dependencies.

dhekabai commented 4 years ago

Sorry for late reply, have you installed all the dependencies.

Yes, doesn't python install them automatically when I install the bot? Or should I do "pip install -r requirements.txt"? Edit: did that, still getting the same error :/

zume2020 commented 4 years ago

have you fix it?

dhekabai commented 4 years ago

have you fix it?

Nope, still the same error :/

zume2020 commented 4 years ago

bro, i have updated the code pls have a look on it, hope the issue fixed.

Akhilesh-Bayadi commented 4 years ago

hello there!! i am getting some errors while running "pip install -r requirements.txt" cmd:(... can you help me out;)

zume2020 commented 4 years ago

hello there!! i am getting some errors while running "pip install -r requirements.txt" cmd:(... can you help me out;)

Yess, whats the error?