add accept/decline commands to message (/view)

This commit is contained in:
Aidan 2025-01-07 20:12:22 -05:00
parent 8fc0d51ccb
commit cee99b92b7

View File

@ -167,6 +167,8 @@ bot.command('view', (ctx) => {
const displayValue = key === 'type' ? type : value;
responseText += `${key.charAt(0).toUpperCase() + key.slice(1)}: ${displayValue || 'N/A'}\n`;
}
responseText += `\nTo accept this request, use the command:\n<code>/accept ${chatId} ${requestId + 1}</code>\n`;
responseText += `To decline this request, use the command:\n<code>/decline ${chatId} ${requestId + 1}</code>`;
ctx.replyWithHTML(responseText);
} else {
ctx.reply('Invalid user ID or request ID.');