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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user