Added response handler

This commit is contained in:
Lucas Gabriel 2024-07-25 03:55:05 +00:00
parent c40a57195e
commit c692edbc66
6 changed files with 22 additions and 11 deletions

View File

@ -6,13 +6,15 @@ function furryFunction(ctx) {
ctx.replyWithAnimation( ctx.replyWithAnimation(
resources.furryGif, { resources.furryGif, {
caption: Strings.isFurry, caption: Strings.isFurry,
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
} else { } else {
ctx.reply( ctx.reply(
Strings.isNtFurry, { 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( ctx.replyWithAnimation(
resources.gayFlag, { resources.gayFlag, {
caption: Strings.isGay, caption: Strings.isGay,
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
} else { } else {
ctx.reply( ctx.reply(
Strings.isNtGay, { Strings.isNtGay, {
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
} }

View File

@ -88,7 +88,8 @@ module.exports = (bot) => {
const machineStats = getSystemInfo(); const machineStats = getSystemInfo();
ctx.reply( ctx.reply(
machineStats, { machineStats, {
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
} else { } else {
@ -100,7 +101,8 @@ module.exports = (bot) => {
const chatInfo = await getChatInfo(ctx); const chatInfo = await getChatInfo(ctx);
ctx.reply( ctx.reply(
chatInfo, { 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); const userInfo = await getUserInfo(ctx);
ctx.reply( ctx.reply(
userInfo, { userInfo, {
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id,
} }
); );
}); });

View File

@ -6,7 +6,8 @@ module.exports = (bot) => {
ctx.replyWithPhoto( ctx.replyWithPhoto(
resources.lynxFullPhoto, { resources.lynxFullPhoto, {
caption: Strings.lynxHelp, caption: Strings.lynxHelp,
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
}); });

View File

@ -5,7 +5,8 @@ module.exports = (bot) => {
ctx.reply( ctx.reply(
Strings.lynxPrivacy, { Strings.lynxPrivacy, {
parse_mode: 'Markdown', parse_mode: 'Markdown',
disable_web_page_preview: true disable_web_page_preview: true,
reply_to_message_id: ctx.message.message_id
} }
); );
}); });

View File

@ -11,7 +11,8 @@ module.exports = (bot) => {
ctx.reply( ctx.reply(
randomVStr, { randomVStr, {
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
}); });

View File

@ -6,7 +6,8 @@ module.exports = (bot) => {
ctx.replyWithPhoto( ctx.replyWithPhoto(
resources.lynxProfilePhoto, { resources.lynxProfilePhoto, {
caption: Strings.lynxWelcome, caption: Strings.lynxWelcome,
parse_mode: 'Markdown' parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
} }
); );
}); });