Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -137,3 +137,9 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => { | ... | @@ -137,3 +137,9 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => { |
| 137 | translate(received_msg, chatId); | 137 | translate(received_msg, chatId); |
| 138 | } | 138 | } |
| 139 | }); | 139 | }); |
| 140 | +bot.onText(/^\/(h|help)/, (msg, match) => { | ||
| 141 | + const chatId = msg.chat.id; | ||
| 142 | + const helpText = "/t\nIt can Translate Korean into English or the language of other countries into Korean.\ | ||
| 143 | +\nusage: /t [msg] or reply /t" | ||
| 144 | + bot.sendMessage(chatId, helpText); | ||
| 145 | +}); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment