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
kykint
2019-05-31 00:20:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8f1da77f0f1368b73ea0fa0e803fc486105f8a0
f8f1da77
1 parent
a5e59166
Recognize multi line input
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
f8f1da7
...
...
@@ -104,7 +104,7 @@ function translate(message, chatId) {
}
// [Any normal message which is not a command (not starting with '/')]
bot
.
onText
(
/^
(?!\/)(
.
+
)
/
,
(
msg
,
match
)
=>
{
bot
.
onText
(
/^
(?!\/)(
(
.|
\n)
+
)
/
,
(
msg
,
match
)
=>
{
const
chatId
=
msg
.
chat
.
id
;
const
chatType
=
msg
.
chat
.
type
;
const
received_msg
=
match
[
1
];
...
...
Please
register
or
login
to post a comment