Changed main menu text

This commit is contained in:
Kirill 2025-11-18 17:44:03 +03:00
parent 602e9b62d8
commit 45ce5da0ac
2 changed files with 5 additions and 1 deletions

View file

@ -11,4 +11,7 @@ namespace BotConstants {
const std::string FIND_ANIME = "action:find_anime";
const std::string MY_TITLES = "navigation:my_titles";
}
namespace Text {
const std::string MAIN_MENU = "Вас приветствует nyanimedb бот:)\nЧего будем делать?";
}
}

View file

@ -1,5 +1,6 @@
#include "front.hpp"
#include "KeyboardFactory.hpp"
#include "constants.hpp"
AnimeBot::AnimeBot(const std::string& token) : bot(token) {
setupHandlers();
@ -13,7 +14,7 @@ void AnimeBot::setupHandlers() {
void AnimeBot::sendMainMenu(int64_t chatId) {
auto keyboard = KeyboardFactory::createMainMenu();
bot.getApi().sendMessage(chatId, "Главное меню", nullptr, nullptr, keyboard);
bot.getApi().sendMessage(chatId, BotConstants::Text::MAIN_MENU, nullptr, nullptr, keyboard);
}
TgBot::Bot& AnimeBot::getBot() {