Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
accounting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
accounting
Commits
dc2064e3
Commit
dc2064e3
authored
Mar 20, 2019
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
9f947926
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
.env
.env
+2
-2
app.js
app.js
+2
-1
message.js
message.js
+6
-0
No files found.
.env
View file @
dc2064e3
LOCAL_TOKEN=6
78421709:AAHzJaYzdoVzKfbNfACmEpxQffo50pqQ5Os
LOCAL_TOKEN=6
60472612:AAGV17N2PNmLWEjHdphY9fHvnQEeOoYuGqY
SERVER_TOKEN=
551703416:AAHdxn4fGIUAKk7Jb50zOQAHiER7gxa05Wk
SERVER_TOKEN=
783628734:AAGHs5YcIGy4dhD3ZsKIQOKxcJVDD0ju4jY
HOST_Local=localhost
HOST_Local=localhost
HOST_Server=172.17.0.1
HOST_Server=172.17.0.1
DB_PASS_SERVER=root
DB_PASS_SERVER=root
...
...
app.js
View file @
dc2064e3
...
@@ -5,7 +5,8 @@ const message = require('./message')
...
@@ -5,7 +5,8 @@ const message = require('./message')
const
constant
=
require
(
'
./const
'
)
const
constant
=
require
(
'
./const
'
)
const
TelegramBot
=
require
(
'
node-telegram-bot-api
'
);
const
TelegramBot
=
require
(
'
node-telegram-bot-api
'
);
const
token
=
'
783628734:AAGHs5YcIGy4dhD3ZsKIQOKxcJVDD0ju4jY
'
;
const
token
=
process
.
env
.
DEBUG
===
'
true
'
?
process
.
env
.
LOCAL_TOKEN
:
process
.
env
.
SERVER_TOKEN
;
const
bot
=
new
TelegramBot
(
token
,
{
polling
:
true
});
const
bot
=
new
TelegramBot
(
token
,
{
polling
:
true
});
...
...
message.js
View file @
dc2064e3
...
@@ -407,6 +407,9 @@ async function listRequest(bot, msg, reqs) {
...
@@ -407,6 +407,9 @@ async function listRequest(bot, msg, reqs) {
text
+=
'
'
text
+=
'
'
}
}
if
(
reqs
[
i
].
file_id
)
text
+=
'
(همراه با عکس)
'
opts
.
reply_markup
.
inline_keyboard
.
push
([{
opts
.
reply_markup
.
inline_keyboard
.
push
([{
text
:
text
,
text
:
text
,
...
@@ -458,6 +461,9 @@ async function showRequest(bot, msg, req) {
...
@@ -458,6 +461,9 @@ async function showRequest(bot, msg, req) {
}
}
await
await
db
.
updateStatus
(
msg
,
constant
.
input3
)
await
await
db
.
updateStatus
(
msg
,
constant
.
input3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment