27 lines
470 B
C++
27 lines
470 B
C++
#include <csignal>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
#include <tgbot/tgbot.h>
|
|
#include "handlers.hpp"
|
|
|
|
class AnimeBot {
|
|
private:
|
|
TgBot::Bot bot;
|
|
BotHandlers handler;
|
|
|
|
public:
|
|
/// Init Bot
|
|
AnimeBot(const std::string& token);
|
|
|
|
/// Main menu
|
|
void setupHandlers();
|
|
|
|
/// Get TgBot::Bot
|
|
TgBot::Bot& getBot();
|
|
|
|
/// Function creates main menu and sends it to user with chatId
|
|
void sendMainMenu(int64_t chatId);
|
|
};
|