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(
|
||||
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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -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,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -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
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -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
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -11,7 +11,8 @@ module.exports = (bot) => {
|
||||
|
||||
ctx.reply(
|
||||
randomVStr, {
|
||||
parse_mode: 'Markdown'
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -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
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user