mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Added response handler
This commit is contained in:
parent
c40a57195e
commit
c692edbc66
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user