add accept/decline commands to message (/view)
This commit is contained in:
parent
8fc0d51ccb
commit
cee99b92b7
2
index.js
2
index.js
@ -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.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user