Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to import into a script? #238

Open
erickythierry opened this issue Nov 15, 2023 · 0 comments
Open

how to import into a script? #238

erickythierry opened this issue Nov 15, 2023 · 0 comments

Comments

@erickythierry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant