Nekmo / telegram-upload

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

how to import into a script? #238

Open erickythierry opened 9 months ago

erickythierry commented 9 months ago

I looked here in the issues for some example code, but the example I found doesn't work (I believe it's out of date)

I used this example: #75

from telegram_upload.client import Client
from telegram_upload.config import default_config

client = Client(default_config())
client.start()
client.send_files('me', ['/path/to/file/'], delete_on_success=False, print_file_id=False,
                  force_file=False, forward=(), caption=None, no_thumbnail=False)

but I got this error

image

via command line works normally