docs(cmd): update

This commit is contained in:
iyear 2022-09-14 13:45:56 +08:00
parent 670dd3940d
commit 6dad5a1fd7
6 changed files with 87 additions and 2 deletions

View file

@ -18,7 +18,9 @@ tdl -h
### SEE ALSO
* [tdl chat](tdl_chat.md) - A set of chat tools
* [tdl dl](tdl_dl.md) - Download what you want
* [tdl login](tdl_login.md) - Login to Telegram
* [tdl up](tdl_up.md) - Upload anything to Telegram
* [tdl version](tdl_version.md) - Check the version info

22
docs/command/tdl_chat.md Normal file
View file

@ -0,0 +1,22 @@
## tdl chat
A set of chat tools
### Options
```
-h, --help help for chat
```
### Options inherited from parent commands
```
-n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
```
### SEE ALSO
* [tdl](tdl.md) - Telegram downloader, but not only a downloader
* [tdl chat ls](tdl_chat_ls.md) - List your all chats with info

View file

@ -0,0 +1,25 @@
## tdl chat ls
List your all chats with info
```
tdl chat ls [flags]
```
### Options
```
-h, --help help for ls
```
### Options inherited from parent commands
```
-n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
```
### SEE ALSO
* [tdl chat](tdl_chat.md) - A set of chat tools

View file

@ -13,7 +13,7 @@ tdl dl -h
```
-h, --help help for dl
-l, --limit int max number of concurrent tasks (default 2)
-s, --part-size int part size for download, max is 512*1024 (default 524288)
-s, --part-size int part size for downloading, max is 512*1024 (default 524288)
-t, --threads int threads for downloading one item (default 8)
```

View file

@ -24,7 +24,7 @@ tdl dl url -n iyear --proxy socks5://127.0.0.1:1080 -u https://t.me/tdl/1 -u htt
```
-l, --limit int max number of concurrent tasks (default 2)
-n, --ns string namespace for Telegram session
-s, --part-size int part size for download, max is 512*1024 (default 524288)
-s, --part-size int part size for downloading, max is 512*1024 (default 524288)
--proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
-t, --threads int threads for downloading one item (default 8)
```

36
docs/command/tdl_up.md Normal file
View file

@ -0,0 +1,36 @@
## tdl up
Upload anything to Telegram
```
tdl up [flags]
```
### Examples
```
tdl up -h
```
### Options
```
-e, --excludes strings exclude the specified file extensions
-h, --help help for up
-l, --limit int max number of concurrent tasks (default 2)
-s, --part-size int part size for uploading, max is 512*1024 (default 524288)
-p, --path strings it can be dirs or files
-t, --threads int threads for uploading one item (default 8)
```
### Options inherited from parent commands
```
-n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
```
### SEE ALSO
* [tdl](tdl.md) - Telegram downloader, but not only a downloader