Showing
1 changed file
with
21 additions
and
2 deletions
| ... | @@ -139,7 +139,26 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => { | ... | @@ -139,7 +139,26 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => { |
| 139 | }); | 139 | }); |
| 140 | bot.onText(/^\/(h|help)/, (msg, match) => { | 140 | bot.onText(/^\/(h|help)/, (msg, match) => { |
| 141 | const chatId = msg.chat.id; | 141 | const chatId = msg.chat.id; |
| 142 | - const helpText = "/t\nIt can Translate Korean into English or the language of other countries into Korean.\ | 142 | + const helpText = "/t\n사용법:[msg] 또는 /t [msg] 또는 reply /t\n1. msg를 유저의 기본언어->\ |
| 143 | -\nusage: /t [msg] or reply /t" | 143 | +영어, 외국어->유저의 기본언어로 번역합니다.\n2. /l 커맨드를 이용해 타겟 언어를 설정하면 유저의\ |
| 144 | +본언어가 타겟 언어로 번역됩니다.\n\n/l\n사용법: /l\n1. 언어를 번역할 타겟 언어를 설정할 수\ | ||
| 145 | +습니다.\n2. 언어 코드를 알고 싶다면 /lc 를 참고하세요.\n3. 가능한 번역을 알고싶다면 /pt 를 참고\ | ||
| 146 | +하세요.\n\n이미지 속 텍스트 번역\n사용법: 사진을 보내세요!\n1. 이미지 속 텍스트를 번역해줍니다.\ | ||
| 147 | +역 옵션은 t와 같습니다." | ||
| 148 | + bot.sendMessage(chatId, helpText); | ||
| 149 | +}); | ||
| 150 | + | ||
| 151 | +bot.onText(/^\/pt/, (msg, match) => { | ||
| 152 | + const chatId = msg.chat.id; | ||
| 153 | + const helpText = "가능한 번역:\nko <-> en/ja/zh-CN/zh-TW/vi/id/th/de/ru/es/it/fr\nen <->\ | ||
| 154 | +a/zh-CN/zh-TW/fr\nja <-> zh-CN/zh-TW\nzh-CN <-> zh-TW" | ||
| 155 | + bot.sendMessage(chatId, helpText); | ||
| 156 | +}); | ||
| 157 | + | ||
| 158 | +bot.onText(/^\/lc/, (msg, match) => { | ||
| 159 | + const chatId = msg.chat.id; | ||
| 160 | + const helpText = "언어 코드:\nko = korean\nen = english\nja = japanese\nzh-CN = Simplified\ | ||
| 161 | +hinese\nzh-TW = Traditional Chinese\nvi = Vietnamese\nid = Indonesian\nth = Thai\nde = German\nru\ | ||
| 162 | + Russian\nes = Espanyan(Spanish)\nit = Italian\nfr = French" | ||
| 144 | bot.sendMessage(chatId, helpText); | 163 | bot.sendMessage(chatId, helpText); |
| 145 | }); | 164 | }); |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment