Commit dc2064e3 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 9f947926
LOCAL_TOKEN=678421709:AAHzJaYzdoVzKfbNfACmEpxQffo50pqQ5Os LOCAL_TOKEN=660472612: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
......
...@@ -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});
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment