From e48dc2956540c2ebadd871be38aaccd5219b8736 Mon Sep 17 00:00:00 2001 From: Mike de Geofroy Date: Sat, 24 Aug 2024 20:07:38 +0200 Subject: [PATCH 1/3] fixed cover --- public/cover.jpg | Bin 0 -> 26745 bytes routes/dashBot.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 public/cover.jpg diff --git a/public/cover.jpg b/public/cover.jpg new file mode 100644 index 0000000000000000000000000000000000000000..78d6b0a3cd3d7135b6274d4208145493dba1ecef GIT binary patch literal 26745 zcmb5V19Yv;vM4%Z+qP}2*tU(8WW`*uZCfk0?X1|gZQIGqzt7(1-gDo$W4zaMj?rIt zS9Mi?Ro%1D^K1EQ8-OS!CMgC00s;a^e18C6YXD&YCmw5%|0A5hl)^wh# z@E|hiaq6v7ojdWj#Yi>7PasdjBB> zvNa@a?A_*hnm&}RgSXqqjv!6z)I%u#%HD?4DQ=751vItyic0`gQ8bd>(T7Z0>~tt6tOp`$aNIobvn zoWQL64j+?!LNpd_S(seOk-w?O&ExvonOTS)3MXrqRJ$OA*ySn%dsJ_S1X3&-_s(a2XCM}Fu%`OW z3$EX#D+eK66X9}r6kPdlUH~>uQ#`HNH3f4?(gga=w}*%HLw9Ma(K{6ty3#+^1|+J^ zv;2DI#;Wy(YpLFl*c#@>#g7sDrxfI{-=@n?fxwoe@pPmqSZ1l7)6jm1=o}FCF=(fq z#Ec#pyZM7Pumw*6R5i*(qod1CXCta$^}J?{-9Fzx2MOjjF3BmH^8Vm<;A{>N2+A<1 z{D&jFF92XK11(KUbuW!rN97|h>j6VAW#gaWm*9yg)!`v_jIM}HUr4zYP1n$x&O>s| zmyw4&hSewIyL()5OEtKlw8|z4;QS$E6^q}^QfWFf6PK+zYuzoHm@8Ut_yq2H?l%$4 zd0yPz0ou6#q555eR5zmL=vJ>v(67eBG)GB`Ht&`npSCK1xY?c%wp&QhT06isbc4Zo zEh#ejbW>97xISBy{P+Zrn=i)0G!^)ZMGMzAqQ>g-XrMdvEZsic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Y zTG3|2OIwStypDVk99BVNBJ@yU97gZW_Bc$X{o4NYy~7BQ-k_mNze(S~Vck|seE&ot z|A3H)(FiDklWOuO9To2raF=HY++Q{b!yKpV1sIBoTo)IZ3W&DvQIM1Tkb#Er7e~o|_5Hjq8J#w%`n3 z<%oY5Ej5}hQ zi?*@8m6hdOm_+IijgxcHILA+=GP1ZismPF*kOCA!~P%z{8DGM8$yuu4fO}cjle%wPFGKq`2Zaokw2MYHtj(q6_ zE+pLwOb0!Y_Vw_3j`T&Y#6?2t)xy;H=kJwV?fP8=0-E}<**Z$CE&q^0M`3(xi6#k7gV}F;J?Wfz++<~7-7G$hUY=1e zx7i+T4~QSzsFgNMFxuLQDXr}Mo=e^u&9`Tgm zmtc$RgIvum@Z1{<1KhM@;Beiu7Va+>$|;BNvz4;-Bj&M<>CyY~YrXKu&!V?k+$!|L zy%7r}&-oUmMn9+3L6+q6W&7=NZ@ zh~Ye8IU^Htv$)7(Z}45@4}z{Zj_}o>-@VqXlMqWPg%paP*!bPytgxRJ9ysA*qywL2 z1RIJ%#IWr_4(XT(q$n%CiO!+y^!bbd134UnXF>zoet7V?JX3{f`ZwWZ!u=RM`Lh?9{E~ipIt_@b*nw@JCVg9+{`wze^S9=e(-;$DG)*%M+qJh*n3td_2oH#?= zK39n&xOI1|9;uuA8++?%7(dKC^4pssHi_Oq61UEaK}xb5$i0X)1@qGgMQ3A;4BZ|7 H$NYZ)V+}u! literal 0 HcmV?d00001 diff --git a/routes/dashBot.js b/routes/dashBot.js index bd54cdb..2c903a4 100644 --- a/routes/dashBot.js +++ b/routes/dashBot.js @@ -200,7 +200,7 @@ router.post(`/hook`, (req, res) => { { type: `photo`, id: `app2`, - photo_url: `${bot_url}/images/dash/cover.jpg`, + photo_url: `${bot_url}/cover.jpg`, title: data.data.id, description: `Приглашение в комнату ${data.data.id}`, is_personal: false, From 5f2af78be676106ff32a2d7d2dd05392678d6643 Mon Sep 17 00:00:00 2001 From: Mike de Geofroy Date: Thu, 29 Aug 2024 10:56:39 +0200 Subject: [PATCH 2/3] fixed small error --- routes/dashBot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/dashBot.js b/routes/dashBot.js index 2c903a4..812e7ad 100644 --- a/routes/dashBot.js +++ b/routes/dashBot.js @@ -205,7 +205,7 @@ router.post(`/hook`, (req, res) => { description: `Приглашение в комнату ${data.data.id}`, is_personal: false, caption: `Не знаете, куда пойти? Давайте подберем вам место! (инвайт в комнату ${data.data.id})`, - thumbnail_url: `${bot_url}/dash/cover.jpg`, + thumbnail_url: `${bot_url}/cover.jpg`, reply_markup: { inline_keyboard: [ [ From cc4221872a3e31d3525d5a3f9cc1e40548be6dac Mon Sep 17 00:00:00 2001 From: Mike de Geofroy Date: Mon, 2 Sep 2024 11:06:12 +0200 Subject: [PATCH 3/3] added a join command with custom coords --- routes/dashBot.js | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/routes/dashBot.js b/routes/dashBot.js index 812e7ad..30373d1 100644 --- a/routes/dashBot.js +++ b/routes/dashBot.js @@ -74,8 +74,6 @@ router.post(`/hook`, (req, res) => { if (req.body.message) { let message = req.body.message; let chat_id = message.chat.id; - - console.log(sessionStates[chat_id]) if (!sessionStates[chat_id]) { sessionStates[chat_id] = { reportMode: false }; @@ -90,14 +88,20 @@ router.post(`/hook`, (req, res) => { currentSession.reportMode = false; if (report_chat_id === undefined) { - console.log("`report_chat_id` is undefined. Check envs to turn on reports."); + console.log( + '`report_chat_id` is undefined. Check envs to turn on reports.' + ); } else { let reportTime = new Date().toLocaleString(); sendMessage( { chat_id: reportChatId, - text: `⚠️ Репорт от пользователя:\n\nИмя: ${message.from.first_name} ${message.from.last_name || ''}\nЮзернейм: @${message.from.username || 'нет юзернейма'}\nChat ID: ${chat_id}\nВремя обращения: ${reportTime}\n\nСообщение:\n${text}`, + text: `⚠️ Репорт от пользователя:\n\nИмя: ${ + message.from.first_name + } ${message.from.last_name || ''}\nЮзернейм: @${ + message.from.username || 'нет юзернейма' + }\nChat ID: ${chat_id}\nВремя обращения: ${reportTime}\n\nСообщение:\n${text}`, parse_mode: 'HTML', }, 'sendMessage', @@ -118,7 +122,7 @@ router.post(`/hook`, (req, res) => { if (message.from.last_name) { fullName += ` ${message.from.last_name}`; } - + sendMessage( { chat_id: chat_id, @@ -128,6 +132,34 @@ router.post(`/hook`, (req, res) => { 'sendMessage', token ); + } else if (text.split(' ')[0] === '/join') { + axios + .post(`${api_url}/api/v1/lobbies`, { + location: { + lat: Number(text.split(' ')[1]), + lon: Number(text.split(' ')[2]), + }, + }) + .then((data) => { + sendMessage( + { + chat_id: chat_id, + text: `Не знаете, куда пойти? Давайте подберем вам место! (инвайт в комнату ${data.data.id})`, + reply_markup: { + inline_keyboard: [ + [ + { + text: 'В лобби!', + url: `https://t.me/${bot_username}/app?startapp=${data.data.id}`, + }, + ], + ], + }, + }, + null, // Set `ep` to null to use 'sendMessage' endpoint + token + ); + }); } else if (text === '/help') { sendMessage( { @@ -142,6 +174,7 @@ router.post(`/hook`, (req, res) => { sendMessage( { chat_id: chat_id, + photo_url: `${bot_url}/cover.jpg`, text: 'Теперь отправьте сообщение, которое вы хотите сообщить администрации.', }, 'sendMessage', @@ -159,7 +192,6 @@ router.post(`/hook`, (req, res) => { } } } - if (req.body.inline_query) { let q = req.body.inline_query; @@ -185,8 +217,7 @@ router.post(`/hook`, (req, res) => { } else { let coords = q.location; axios - .post(`${api_url}/api/v1/lobbies/find`, { - dist: 10, + .post(`${api_url}/api/v1/lobbies`, { location: { lat: coords.latitude, lon: coords.longitude,