Disable keyboard buttons completely in group chats

- Added getReplyMarkupForChat utility to explicitly remove keyboards in groups
- Updated all group chat messages to remove keyboards
- Prevents keyboards from being re-enabled when users press buttons
- Ensures keyboards are disabled for all users in group chats
This commit is contained in:
Michilis
2025-12-25 18:03:16 +00:00
parent ff9c1f1dcf
commit d1ce0f0bef
5 changed files with 104 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
import TelegramBot from 'node-telegram-bot-api';
import { logUserAction } from '../services/logger';
import { getMainMenuKeyboard } from '../utils/keyboards';
import { getMainMenuKeyboard, getReplyMarkupForChat } from '../utils/keyboards';
import { messages } from '../messages';
/**
@@ -22,6 +22,7 @@ export async function handleHelpCommand(
// Show group-specific help with admin commands
await bot.sendMessage(chatId, messages.help.groupMessage, {
parse_mode: 'Markdown',
reply_markup: getReplyMarkupForChat(chatId),
});
} else {
// Show user help in DM