summaryrefslogtreecommitdiff
path: root/include/tgbot/types/InlineKeyboardMarkup.h
blob: 13466c5cabe4490e7c5a0eec54e019b737173c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TGBOT_INLINEKEYBOARDMARKUP_H
#define TGBOT_INLINEKEYBOARDMARKUP_H

#include "tgbot/types/GenericReply.h"
#include "tgbot/types/InlineKeyboardButton.h"

#include <vector>
#include <memory>

namespace TgBot {

/**
 * @brief This object represents an [inline keyboard](https://core.telegram.org/bots/features#inline-keyboards) that appears right next to the message it belongs to.
 *
 * @ingroup types
 */
class InlineKeyboardMarkup : public GenericReply {

public:
    typedef std::shared_ptr<InlineKeyboardMarkup> Ptr;

    /**
     * @brief Array of button rows, each represented by an Array of InlineKeyboardButton objects
     */
    std::vector<std::vector<InlineKeyboardButton::Ptr>> inlineKeyboard;

};
}

#endif //TGBOT_INLINEKEYBOARDMARKUP_H