Skip to content

Commit

Permalink
docs(hugo): default namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Dec 17, 2023
1 parent 6035903 commit ad063ef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
16 changes: 6 additions & 10 deletions docs/content/en/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ weight: 20

## Login

Each namespace represents a Telegram account

You should set the namespace **when each command is executed**:

### **Login with official clients(Recommended)**

{{< hint warning >}}
Expand All @@ -21,31 +17,31 @@ Store or App Store)
Automatically find the client path:

{{< command >}}
tdl login -n quickstart
tdl login
{{< /command >}}

Or if you set a local passcode:

{{< command >}}
tdl login -n quickstart -p YOUR_PASSCODE
tdl login -p YOUR_PASSCODE
{{< /command >}}

Or specify custom client path:

{{< command >}}
tdl login -n quickstart -d /path/to/TelegramDesktop
tdl login -d /path/to/TelegramDesktop
{{< /command >}}

### **Login with phone & code**

{{< command >}}
tdl login -n quickstart --code
tdl login --code
{{< /command >}}

## Download

We use account `quickstart` to download media from Telegram official channel:
We download media from Telegram official channel:

{{< command >}}
tdl dl -n quickstart -u https://t.me/telegram/193
tdl dl -u https://t.me/telegram/193
{{< /command >}}
4 changes: 2 additions & 2 deletions docs/content/en/guide/global-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Global config is some CLI flags that can be set in every command.

## `-n/--ns`

Each namespace represents a Telegram account.
Each namespace represents a Telegram account. Default: `default`.

You should set the namespace **when each command is executed**:
If you want to add another account, just add `-n YOUR_ACCOUNT_NAME` option to every command:

{{< command >}}
tdl -n iyear
Expand Down
16 changes: 6 additions & 10 deletions docs/content/zh/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ weight: 20

## 登录

每个命名空间代表一个 Telegram 帐户

在执行每个命令时,您应该设置命名空间:

### **使用官方客户端登录(推荐)**

{{< hint warning >}}
Expand All @@ -20,31 +16,31 @@ weight: 20
使用默认路径:

{{< command >}}
tdl login -n quickstart
tdl login
{{< /command >}}

如果您设置了本地密码:

{{< command >}}
tdl login -n quickstart -p YOUR_PASSCODE
tdl login -p YOUR_PASSCODE
{{< /command >}}

或者指定自定义客户端路径:

{{< command >}}
tdl login -n quickstart -d /path/to/TelegramDesktop
tdl login -d /path/to/TelegramDesktop
{{< /command >}}

### **使用手机号码和验证码登录**

{{< command >}}
tdl login -n quickstart --code
tdl login --code
{{< /command >}}

## 下载

我们使用帐户 `quickstart` Telegram 官方频道下载文件:
我们从 Telegram 官方频道下载文件:

{{< command >}}
tdl dl -n quickstart -u https://t.me/telegram/193
tdl dl -u https://t.me/telegram/193
{{< /command >}}
4 changes: 2 additions & 2 deletions docs/content/zh/guide/global-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ weight: 10

## `-n/--ns`

每个命名空间代表一个 Telegram 帐号。
每个命名空间代表一个 Telegram 帐号。默认值:`default`

在执行每个命令时,您应该设置命名空间
例如你想新增一个其他账户,为所有命令都添加 `-n YOUR_ACCOUNT_NAME` 选项即可

{{< command >}}
tdl -n iyear
Expand Down

0 comments on commit ad063ef

Please sign in to comment.