feat(tgbot): add title menu

This commit is contained in:
Kirill 2025-12-20 01:19:56 +03:00
parent f045eb22b2
commit da40d7df49
7 changed files with 244 additions and 11 deletions

View file

@ -25,6 +25,7 @@ public:
// Асинхронный метод: получить список тайтлов пользователя
pplx::task<std::vector<BotStructs::Title>> fetchUserTitlesAsync(const std::string& userId);
pplx::task<BotStructs::Title> fetchTitleAsync(const std::string& userId, int64_t titleId);
private:
std::shared_ptr<org::openapitools::client::api::ApiConfiguration> apiconfiguration;
@ -32,4 +33,7 @@ private:
std::shared_ptr<org::openapitools::client::api::DefaultApi> api;
nyanimed::AuthImpersonationClient authClient;
static BotStructs::Title mapTitleToBotTitle(
const std::shared_ptr<org::openapitools::client::model::Title>& titleModel);
};