From c692edbc668730a96c74227d9493fb2c646bb719 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel <90426410+lucmsilva651@users.noreply.github.com> Date: Thu, 25 Jul 2024 03:55:05 +0000 Subject: [PATCH] Added response handler --- commands/fun.js | 12 ++++++++---- commands/getinfo.js | 9 ++++++--- commands/help.js | 3 ++- commands/privacy.js | 3 ++- commands/random.js | 3 ++- commands/start.js | 3 ++- 6 files changed, 22 insertions(+), 11 deletions(-) diff --git a/commands/fun.js b/commands/fun.js index c864a97..881733d 100644 --- a/commands/fun.js +++ b/commands/fun.js @@ -6,13 +6,15 @@ function furryFunction(ctx) { ctx.replyWithAnimation( resources.furryGif, { caption: Strings.isFurry, - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); } else { ctx.reply( Strings.isNtFurry, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); } @@ -23,13 +25,15 @@ function gayFunction(ctx) { ctx.replyWithAnimation( resources.gayFlag, { caption: Strings.isGay, - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); } else { ctx.reply( Strings.isNtGay, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); } diff --git a/commands/getinfo.js b/commands/getinfo.js index 845e4f9..b1748a3 100644 --- a/commands/getinfo.js +++ b/commands/getinfo.js @@ -88,7 +88,8 @@ module.exports = (bot) => { const machineStats = getSystemInfo(); ctx.reply( machineStats, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); } else { @@ -100,7 +101,8 @@ module.exports = (bot) => { const chatInfo = await getChatInfo(ctx); ctx.reply( chatInfo, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); }); @@ -109,7 +111,8 @@ module.exports = (bot) => { const userInfo = await getUserInfo(ctx); ctx.reply( userInfo, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id, } ); }); diff --git a/commands/help.js b/commands/help.js index 810611e..7d2f7f1 100644 --- a/commands/help.js +++ b/commands/help.js @@ -6,7 +6,8 @@ module.exports = (bot) => { ctx.replyWithPhoto( resources.lynxFullPhoto, { caption: Strings.lynxHelp, - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); }); diff --git a/commands/privacy.js b/commands/privacy.js index 800aeeb..acc6546 100644 --- a/commands/privacy.js +++ b/commands/privacy.js @@ -5,7 +5,8 @@ module.exports = (bot) => { ctx.reply( Strings.lynxPrivacy, { parse_mode: 'Markdown', - disable_web_page_preview: true + disable_web_page_preview: true, + reply_to_message_id: ctx.message.message_id } ); }); diff --git a/commands/random.js b/commands/random.js index a4cebaa..17199e2 100644 --- a/commands/random.js +++ b/commands/random.js @@ -11,7 +11,8 @@ module.exports = (bot) => { ctx.reply( randomVStr, { - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); }); diff --git a/commands/start.js b/commands/start.js index 5933d83..b1db859 100644 --- a/commands/start.js +++ b/commands/start.js @@ -6,7 +6,8 @@ module.exports = (bot) => { ctx.replyWithPhoto( resources.lynxProfilePhoto, { caption: Strings.lynxWelcome, - parse_mode: 'Markdown' + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id } ); });