Implemented fetchUserTitlesAsync func and embedded it in the code of the front in the trial mode. It needs to be restructured
14 lines
452 B
C++
14 lines
452 B
C++
#include <tgbot/tgbot.h>
|
|
#include "structs.hpp"
|
|
|
|
class KeyboardFactory {
|
|
public:
|
|
/// Create keyboard for main menu
|
|
static TgBot::InlineKeyboardMarkup::Ptr createMainMenu();
|
|
|
|
/// Create keyboard for My_Titles
|
|
static TgBot::InlineKeyboardMarkup::Ptr createMyTitles(std::vector<BotStructs::Title> titles);
|
|
|
|
/// Create keyboard for sendError
|
|
static TgBot::InlineKeyboardMarkup::Ptr createError(const std::string& errorCallback);
|
|
};
|