From 362346fc364fb1989fa428ed9521ef371ce8dccb Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sat, 23 May 2020 12:58:44 +0300 Subject: [PATCH] Fix file caption --- scripts/uploader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uploader.py b/scripts/uploader.py index 6e80aa7..394c200 100644 --- a/scripts/uploader.py +++ b/scripts/uploader.py @@ -6,7 +6,7 @@ def upload(api_id, api_hash, session, target, file, description = ""): with TelegramClient(StringSession(session), api_id, api_hash) as client: - client.send_file(target, file, description) + client.send_file(target, file, caption=description) if __name__ == '__main__': if len(sys.argv) <= 2: