feat(tgbot-back): Add functions for processing user authentication

This commit is contained in:
Kirill 2025-12-19 17:48:16 +03:00
parent d6194ec8be
commit f045eb22b2
6 changed files with 122 additions and 21 deletions

View file

@ -78,7 +78,7 @@ void BotHandlers::renderCurrent(TgBot::CallbackQuery::Ptr query) {
editMessage(chatId, messageId, showMainMenu());
return;
case UserState::VIEWING_MY_TITLES:
server_.fetchUserTitlesAsync(std::to_string(2)) // ALARM: тестовое значение вместо userId
server_.fetchUserTitlesAsync(std::to_string(22)) // ALARM: тестовое значение вместо userId
.then([this, chatId, messageId](pplx::task<std::vector<BotStructs::Title>> t) {
try {
auto titles = t.get();