Skip to content

Commit fc8902b

Browse files
author
qwe7002
committed
feat: update command formats for dual SIM support in SMS and USSD functionalities
1 parent 4dc52e7 commit fc8902b

6 files changed

Lines changed: 245 additions & 9 deletions

File tree

docs/es_es/user-manual.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ Puede especificar un número de teléfono de confianza para el reenvío automát
6161
{contenido del SMS}
6262
```
6363

64+
Para dispositivos con doble SIM, puede especificar qué tarjeta SIM usar:
65+
66+
```
67+
/sendsms 1
68+
{número de teléfono del destinatario}
69+
{contenido del SMS}
70+
```
71+
72+
o
73+
74+
```
75+
/sendsms 2
76+
{número de teléfono del destinatario}
77+
{contenido del SMS}
78+
```
79+
6480
Ejemplo:
6581
```
6682
/sendsms
@@ -76,6 +92,18 @@ Puede usar `/sendussd` para enviar solicitudes USSD, con el formato:
7692
/sendussd
7793
{código USSD}
7894
```
95+
96+
Para dispositivos con doble SIM, puede especificar qué tarjeta SIM usar:
97+
98+
```
99+
/sendussd 1 {código USSD}
100+
```
101+
102+
o
103+
104+
```
105+
/sendussd 2 {código USSD}
106+
```
79107
**Si no está en la región actual, agregue su código de país/región (por ejemplo, código internacional para España: +34).**
80108

81109
## 4. Comandos - Control del Bot mediante Chat
@@ -84,7 +112,23 @@ Puede enviar el comando `/start` para obtener una lista de comandos disponibles.
84112
### Enviar SMS
85113
El formato para enviar SMS usando comandos es el mismo que por SMS. También puede enviar `/sendsms` para entrar en el modo interactivo de envío de SMS.
86114

87-
Usar `/sendsms` enviará SMS a través de la tarjeta SIM predeterminada. Cuando use múltiples tarjetas SIM, use `/sendsms1` para enviar a través de la primera SIM y `/sendsms2` para la segunda (si está disponible).
115+
Para dispositivos con doble SIM, puede añadir el número de tarjeta SIM (1 o 2) después del comando para especificar cuál usar:
116+
117+
```
118+
/sendsms 1
119+
{número de teléfono del destinatario}
120+
{contenido del SMS}
121+
```
122+
123+
o
124+
125+
```
126+
/sendsms 2
127+
{número de teléfono del destinatario}
128+
{contenido del SMS}
129+
```
130+
131+
Cuando use `/sendsms` sin especificar el número de tarjeta SIM en un dispositivo con doble SIM, el sistema le pedirá que seleccione qué tarjeta SIM usar.
88132

89133
### Responder SMS
90134
Puede usar la función de respuesta de Telegram para responder rápidamente a SMS recibidos y llamadas perdidas.

docs/ja_jp/user-manual.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ Telegram botサーバーに正常に接続されました。
8383
{SMSの内容}
8484
```
8585

86+
デュアルSIMデバイスの場合、使用するSIMカードを指定できます:
87+
88+
```
89+
/sendsms 1
90+
{受信者の電話番号}
91+
{SMSの内容}
92+
```
93+
94+
または
95+
96+
```
97+
/sendsms 2
98+
{受信者の電話番号}
99+
{SMSの内容}
100+
```
101+
86102
例:
87103

88104
```
@@ -102,6 +118,18 @@ cxll
102118
{USSDコード}
103119
```
104120

121+
デュアルSIMデバイスの場合、使用するSIMカードを指定できます:
122+
123+
```
124+
/sendussd 1 {USSDコード}
125+
```
126+
127+
または
128+
129+
```
130+
/sendussd 2 {USSDコード}
131+
```
132+
105133
**現在の地域にいない場合は、国/地域の呼び出しコードを追加してください(例:中国本土の国際コード:+86)。**
106134

107135
## 4. コマンド - チャットコマンドによるボットの制御
@@ -112,7 +140,23 @@ cxll
112140

113141
コマンドを使用したSMSの送信フォーマットはSMS送信と同じです。また、`/sendsms`を直接送信して対話式のSMS送信に入ることもできます。
114142

115-
`/sendsms`を使用するとデフォルトのSIMカードからSMSが送信されます。複数のSIMカードを使用している場合、`/sendsms1`で1枚目のSIMカードから、`/sendsms2`で2枚目のSIMカードから送信できます(利用可能な場合)。
143+
デュアルSIMデバイスの場合、コマンドの後にSIMカード番号(1または2)を追加して、使用するSIMカードを指定できます:
144+
145+
```
146+
/sendsms 1
147+
{受信者の電話番号}
148+
{SMSの内容}
149+
```
150+
151+
または
152+
153+
```
154+
/sendsms 2
155+
{受信者の電話番号}
156+
{SMSの内容}
157+
```
158+
159+
デュアルSIMデバイスで`/sendsms`を使用し、SIMカード番号を指定しない場合、システムが使用するSIMカードの選択を促します。
116160

117161
### SMSへの返信
118162

@@ -138,4 +182,4 @@ Telegramの返信機能を使用して、受信したSMSや不在着信に素早
138182

139183
- Cloudflare®はCloudflare, Inc.の登録商標です。
140184

141-
- MIUI®は小米科技有限責任公司の登録商標です。
185+
- MIUI®は小米科技有限責任公司の登録商標です。

docs/ru_ru/user-manual.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ For a description of the Bot API, see this page: https://core.telegram.org/bots/
8383
{текст сообщения}
8484
```
8585

86+
Для устройств с двумя SIM-картами вы можете указать, какую SIM-карту использовать:
87+
88+
```
89+
/sendsms 1
90+
{номер получателя}
91+
{текст сообщения}
92+
```
93+
94+
или
95+
96+
```
97+
/sendsms 2
98+
{номер получателя}
99+
{текст сообщения}
100+
```
101+
86102
Пример:
87103

88104
```
@@ -102,6 +118,18 @@ cxll
102118
{USSD код}
103119
```
104120

121+
Для устройств с двумя SIM-картами вы можете указать, какую SIM-карту использовать:
122+
123+
```
124+
/sendussd 1 {USSD код}
125+
```
126+
127+
или
128+
129+
```
130+
/sendussd 2 {USSD код}
131+
```
132+
105133
**Если вы находитесь не в текущем регионе, добавьте код страны/региона (например, международный код для материкового Китая: +86).**
106134

107135
## 4. Команды - Управление ботом через команды чата
@@ -112,7 +140,23 @@ cxll
112140

113141
Формат отправки SMS через команды такой же, как при отправке через SMS. Вы также можете просто отправить `/sendsms` для интерактивной отправки SMS.
114142

115-
Использование `/sendsms` отправит SMS через SIM-карту по умолчанию. При использовании нескольких SIM-карт используйте `/sendsms1` для отправки через первую SIM-карту и `/sendsms2` через вторую SIM-карту (если доступна).
143+
Для устройств с двумя SIM-картами вы можете добавить номер SIM-карты (1 или 2) после команды, чтобы указать, какую использовать:
144+
145+
```
146+
/sendsms 1
147+
{номер получателя}
148+
{текст сообщения}
149+
```
150+
151+
или
152+
153+
```
154+
/sendsms 2
155+
{номер получателя}
156+
{текст сообщения}
157+
```
158+
159+
При использовании `/sendsms` без указания номера SIM-карты на устройстве с двумя SIM-картами система предложит выбрать, какую SIM-карту использовать.
116160

117161
### Ответ на SMS
118162

@@ -138,4 +182,4 @@ cxll
138182

139183
- Cloudflare® является зарегистрированной торговой маркой Cloudflare, Inc.
140184

141-
- MIUI® является зарегистрированной торговой маркой Xiaomi Technology Co., Ltd.
185+
- MIUI® является зарегистрированной торговой маркой Xiaomi Technology Co., Ltd.

docs/user-manual.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ You can set a trusted phone number for automatic forwarding. The bot will forwar
9292
{SMS content}
9393
```
9494

95+
For dual SIM devices, you can specify which SIM card to use:
96+
97+
```
98+
/sendsms 1
99+
{Receiver phone number}
100+
{SMS content}
101+
```
102+
103+
or
104+
105+
```
106+
/sendsms 2
107+
{Receiver phone number}
108+
{SMS content}
109+
```
110+
95111
Example:
96112

97113
```
@@ -111,6 +127,18 @@ You can use `/sendussd` to send USSD requests. The command format is:
111127
{USSD code}
112128
```
113129

130+
For dual SIM devices, you can specify which SIM card to use:
131+
132+
```
133+
/sendussd 1 {USSD code}
134+
```
135+
136+
or
137+
138+
```
139+
/sendussd 2 {USSD code}
140+
```
141+
114142
**If you are roaming, please add your country/region codes before the number(e.g., UK country calling code: +44)**
115143

116144
## 4. Commands - Use chat commands to manage bot
@@ -127,6 +155,22 @@ The command format to send an SMS is:
127155
{Receiver phone number}
128156
{SMS content}
129157
```
158+
159+
For dual SIM devices, you can specify which SIM card to use by adding the SIM number (1 or 2) after the command:
160+
```
161+
/sendsms 1
162+
{Receiver phone number}
163+
{SMS content}
164+
```
165+
166+
or
167+
168+
```
169+
/sendsms 2
170+
{Receiver phone number}
171+
{SMS content}
172+
```
173+
130174
For example,
131175
```
132176
/sendsms
@@ -136,7 +180,7 @@ example.com
136180

137181
It will send `example.com` to the number `+441807391001` by SMS.
138182

139-
An SMS will be sent by default SIM card when using `/sendsms`. When you are using dual SIM cards, use `/sendsms1` to send SMS from the first SIM card and `/sendsms2` to send SMS from the second SIM card (if SIM2 is avaliable).
183+
When using `/sendsms` without specifying a SIM card number on a dual SIM device, you will be prompted to select which SIM card to use.
140184

141185
### Reply to an SMS
142186

docs/zh_cn/user-manual.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,23 @@ cxll
112112

113113
使用命令发送短信的格式和短信发送相同,您也可以直接发送 `/sendsms` 进入交互式短信发送。
114114

115-
使用 `/sendsms` 将通过默认 SIM 卡发送短信。当您使用多张SIM卡时,使用 `/sendsms1` 通过第一张SIM卡发送短信,使用 `/sendsms2` 通过第二张SIM卡发送短信(如果可用)。
115+
对于双卡设备,您可以在命令后添加 SIM 卡编号(1 或 2)来指定使用哪张 SIM 卡:
116+
117+
```
118+
/sendsms 1
119+
{接收方电话号码}
120+
{短信内容}
121+
```
122+
123+
或者
124+
125+
```
126+
/sendsms 2
127+
{接收方电话号码}
128+
{短信内容}
129+
```
130+
131+
当在双卡设备上使用 `/sendsms` 而不指定 SIM 卡编号时,系统会提示您选择使用哪张 SIM 卡。
116132

117133
### 回复短信
118134

docs/zh_tw/user-manual.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ For a description of the Bot API, see this page: https://core.telegram.org/bots/
8686
{短信內容}
8787
```
8888

89+
對於雙卡設備,您可以指定使用哪張SIM卡:
90+
91+
```
92+
/sendsms 1
93+
{接收方電話號碼}
94+
{短信內容}
95+
```
96+
97+
或者
98+
99+
```
100+
/sendsms 2
101+
{接收方電話號碼}
102+
{短信內容}
103+
```
104+
89105
例子:
90106

91107
```
@@ -105,6 +121,18 @@ cxll
105121
{USSD 代碼}
106122
```
107123

124+
對於雙卡設備,您可以指定使用哪張SIM卡:
125+
126+
```
127+
/sendussd 1 {USSD 代碼}
128+
```
129+
130+
或者
131+
132+
```
133+
/sendussd 2 {USSD 代碼}
134+
```
135+
108136
**如果您不在當前區域,請添加您的國家/地區呼叫區號(例如,中國大陸國際區號:+86)。 **
109137

110138
## 4、命令 - 使用聊天命令控制機器人
@@ -115,7 +143,23 @@ cxll
115143

116144
使用命令發送短信的格式和短信發送相同,您也可以直接發送 `/sendsms` 進入交互式短信發送。
117145

118-
使用 `/sendsms` 將通過默認 SIM 卡發送短信。當您使用多張SIM卡時,使用 `/sendsms1` 通過第一張SIM卡發送短信,使用 `/sendsms2` 通過第二張SIM卡發送短信(如果可用)。
146+
對於雙卡設備,您可以在命令後添加 SIM 卡編號(1 或 2)來指定使用哪張 SIM 卡:
147+
148+
```
149+
/sendsms 1
150+
{接收方電話號碼}
151+
{短信內容}
152+
```
153+
154+
或者
155+
156+
```
157+
/sendsms 2
158+
{接收方電話號碼}
159+
{短信內容}
160+
```
161+
162+
當在雙卡設備上使用 `/sendsms` 而不指定 SIM 卡編號時,系統會提示您選擇使用哪張 SIM 卡。
119163

120164
### 回复短信
121165

@@ -142,4 +186,4 @@ cxll
142186

143187
- Cloudflare® 是 Cloudflare, Inc. 的註冊商標。
144188

145-
- MIUI® 是小米科技有限責任公司的註冊商標。
189+
- MIUI® 是小米科技有限責任公司的註冊商標。

0 commit comments

Comments
 (0)