Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kykint
/
TELEGRAMBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김건
2019-06-03 16:44:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e2e95e1963717e801f01d348de76b293a6758eae
e2e95e19
1 parent
664c7fd2
add /t command information
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app.js
app.js
View file @
e2e95e1
...
...
@@ -137,3 +137,9 @@ bot.onText(/^\/(t|translate)($| ((.|\n)+))/, (msg, match) => {
translate
(
received_msg
,
chatId
);
}
});
bot
.
onText
(
/^
\/(
h|help
)
/
,
(
msg
,
match
)
=>
{
const
chatId
=
msg
.
chat
.
id
;
const
helpText
=
"/t\nIt can Translate Korean into English or the language of other countries into Korean.\
\nusage: /t [msg] or reply /t"
bot
.
sendMessage
(
chatId
,
helpText
);
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment