diff --git a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp index 4f6b82d03..b8c879bb1 100644 --- a/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp +++ b/Telegram/SourceFiles/chat_helpers/bot_keyboard.cpp @@ -153,7 +153,7 @@ void BotKeyboard::leaveEventHook(QEvent *e) { bool BotKeyboard::moderateKeyActivate(int key) { if (const auto item = _session->data().message(_wasForMsgId)) { if (const auto markup = item->Get()) { - if (key >= Qt::Key_1 && key <= Qt::Key_9) { + if (key >= Qt::Key_1 && key <= Qt::Key_2) { const auto index = int(key - Qt::Key_1); if (!markup->rows.empty() && index >= 0 @@ -167,6 +167,10 @@ bool BotKeyboard::moderateKeyActivate(int key) { App::sendBotCommand(user, user, qsl("/translate")); } else if (key == Qt::Key_W) { App::sendBotCommand(user, user, qsl("/eng")); + } else if (key == Qt::Key_3) { + App::sendBotCommand(user, user, qsl("/pattern")); + } else if (key == Qt::Key_4) { + App::sendBotCommand(user, user, qsl("/abuse")); } return true; }