Skip to content

Commit

Permalink
Fix file caption
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed May 23, 2020
1 parent 2bea93a commit 362346f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 362346f

Please sign in to comment.