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:12:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5e591663cdae0ff526abce078a04262b0070ab9
a5e59166
1 parent
5b66048e
Fix normal message detection
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
a5e5916
...
...
@@ -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
(
/
^
(?!\/)(
.+
)
/
,
(
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