Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Bump to v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCaduceus authored Jul 27, 2023
1 parent 275ec99 commit 81193a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ Git installation is optional if you prefer downloading tg-upload as zip file usi

**1.Install Python & Git:**

Prefer Python 3.11 for faster execution speed.

For Windows:
```
winget install Python.Python.3.11
Expand Down Expand Up @@ -594,7 +592,7 @@ For every profile, tg-upload generates a .session file which is the main file th

**7.Feels like my .session file or session string is leaked! how I can revoke it to prevent unauthorized usage?**

Use the --logout flag of tg-upload to revoke the specified session and omit it from your Telegram Account’s active sessions list. Simply mention the session name using the --profile flag and pass the --logout flag.
Use the `--logout` flag of tg-upload to revoke the specified session and omit it from your Telegram Account’s active sessions list. Simply mention the session name using the `--profile` flag and pass the `--logout` flag.

```
py tg-upload.py --profile xyz --logout
Expand All @@ -608,13 +606,13 @@ You can use third-party Telegram clients that let users to see more details (<a

**9.Can I send files to a particular topic inside a Telegram community?**

To do this, you just need to pass the topic identity or identity of any message inside of that topic with the --reply_to flag.
To do this, you just need to pass the topic identity or identity of any message inside of that topic with the `--reply_to` flag.

**Getting topic identity:**

Copy link of any message inside the topic you want identity of and the link will be in this format `https://t.me/username/topic_id/msg_id` or in case of private chats link will be in this format `https://t.me/c/chat_id/topic_id/msg_id`.

10.Is `--replace` flag case-sensitive? can it also manipulate file format?
**10.Is `--replace` flag case-sensitive? can it also manipulate file format?**

Be aware that the replace flag is case-sensitive and has full access to the filename, including its format. This means that it can manipulate the file format and even your filename prefix. During download, you should use replace more carefully because if the file is a part file containing `.partX` (an extension allotted by tg-upload) where `X` is any number starting from 0, then replace can even manipulate it.

Expand Down
4 changes: 2 additions & 2 deletions tg-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import hashlib

tg_upload = "1.1.3"
tg_upload = "1.1.4"
versions = f"tg-upload: {tg_upload} \
Python: {py_ver[0]}.{py_ver[1]}.{py_ver[2]} \
Pyrogram: {get_dist('pyrogram').version} \
Expand Down Expand Up @@ -748,7 +748,7 @@ def get_chatid(raw_id):
if args.replace:
filename = filename.replace(args.replace[0], args.replace[1])
file_size, file_sha256, file_md5, creation_time, modification_time = file_info(_path, caption)
with VideoFileClip(_path) as video:
with VideoFileClip(str(_path)) as video:
Path(args.thumb_dir).mkdir(exist_ok=True)
if args.thumb == 'auto':
args.thumb = f"thumb/THUMB_{PurePath(_path).stem}.jpg"
Expand Down

0 comments on commit 81193a6

Please sign in to comment.