SklavaBot 0.1.0
Telegram Bot in C++
Loading...
Searching...
No Matches
commands.cpp File Reference
#include <boost/algorithm/string.hpp>
#include <boost/date_time/posix_time/conversion.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <cstdint>
#include <iostream>
#include <leptonica/allheaders.h>
#include <string>
#include <tgbot/tgbot.h>
#include <vector>
#include "config.hpp"
#include "metar.hpp"
#include "ocr.hpp"
#include "tgbot/types/Message.h"
#include "utils.hpp"

Go to the source code of this file.

Namespaces

namespace  Bot
 

Functions

const std::string PARSE_MODE ("Markdown")
 Telegram parse mode.
 
void Bot::register_handlers (TgBot::Bot *bot)
 Register all the handlers for bot commands.
 

Variables

const std::string HELP_MESSAGE
 
const std::string INFO_MESSAGE
 

Function Documentation

◆ PARSE_MODE()

const std::string PARSE_MODE ( "Markdown"  )

Telegram parse mode.

Variable Documentation

◆ HELP_MESSAGE

const std::string HELP_MESSAGE
Initial value:
=
"Hello, I'm " BOT_NAME "!\n"
"I'm a bot created by " BOT_AUTHOR "!\n"
"My commands:\n"
"`/start` - _start the bot_\n"
"`/help` - _show this message_\n"
"`/info` - _show compilation machine information_\n"
"`/ocr` - _optical Character Recognition with tesseract_\n"
"`/metar <ICAO Code>` - _get METAR information_\n"
"\n"
"My source code is available at " BOT_GITHUB_REPO "\n"
"Version: " BOT_VERSION "\n"
#define BOT_NAME
Definition config.hpp:4
#define BOT_VERSION
Definition config.hpp:6
#define BOT_AUTHOR
Definition config.hpp:8
#define BOT_GITHUB_REPO
Definition config.hpp:9

Definition at line 22 of file commands.cpp.

◆ INFO_MESSAGE

const std::string INFO_MESSAGE

Definition at line 35 of file commands.cpp.