From 6dad5a1fd7a484d5ad884e60214929d756098aa9 Mon Sep 17 00:00:00 2001 From: iyear Date: Wed, 14 Sep 2022 13:45:56 +0800 Subject: [PATCH] docs(cmd): update --- docs/command/tdl.md | 2 ++ docs/command/tdl_chat.md | 22 ++++++++++++++++++++++ docs/command/tdl_chat_ls.md | 25 +++++++++++++++++++++++++ docs/command/tdl_dl.md | 2 +- docs/command/tdl_dl_url.md | 2 +- docs/command/tdl_up.md | 36 ++++++++++++++++++++++++++++++++++++ 6 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 docs/command/tdl_chat.md create mode 100644 docs/command/tdl_chat_ls.md create mode 100644 docs/command/tdl_up.md diff --git a/docs/command/tdl.md b/docs/command/tdl.md index a29b556..b099443 100644 --- a/docs/command/tdl.md +++ b/docs/command/tdl.md @@ -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 diff --git a/docs/command/tdl_chat.md b/docs/command/tdl_chat.md new file mode 100644 index 0000000..c296831 --- /dev/null +++ b/docs/command/tdl_chat.md @@ -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 + diff --git a/docs/command/tdl_chat_ls.md b/docs/command/tdl_chat_ls.md new file mode 100644 index 0000000..e4ca3e4 --- /dev/null +++ b/docs/command/tdl_chat_ls.md @@ -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 + diff --git a/docs/command/tdl_dl.md b/docs/command/tdl_dl.md index 1f88749..f4321e6 100644 --- a/docs/command/tdl_dl.md +++ b/docs/command/tdl_dl.md @@ -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) ``` diff --git a/docs/command/tdl_dl_url.md b/docs/command/tdl_dl_url.md index d59d64f..c573473 100644 --- a/docs/command/tdl_dl_url.md +++ b/docs/command/tdl_dl_url.md @@ -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) ``` diff --git a/docs/command/tdl_up.md b/docs/command/tdl_up.md new file mode 100644 index 0000000..3b31bab --- /dev/null +++ b/docs/command/tdl_up.md @@ -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 +