Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.06k stars 233 forks source link

Use with django? Cannot import any methods #186

Closed Nitesh-mint closed 1 year ago

Nitesh-mint commented 1 year ago

Description

I want to use it with my django app but i am not able to call any methods.Can you please help me with the methods that i can use it with my django app.

Log

from telegram_upload import upload_file
ImportError: cannot import name 'upload_file' from 'telegram_upload'
Nekmo commented 1 year ago

Hi, you have to look at how telegram-upload works in the management.py file. There you will see how a Client instance is created.

https://github.com/Nekmo/telegram-upload/blob/master/telegram_upload/management.py

In this file you will find examples of the executed methods.

Regards.

Nekmo commented 1 year ago

Closed due to inactivity.