feat(tgbot-back): Add functions for processing user authentication
This commit is contained in:
parent
d6194ec8be
commit
f045eb22b2
6 changed files with 122 additions and 21 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue