summaryrefslogtreecommitdiff
path: root/include/tgbot/types/WebAppData.h
blob: 98631d940565ded04a7111d8e59d336db6ef14f9 (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
31
32
#ifndef TGBOT_WEBAPPDATA_H
#define TGBOT_WEBAPPDATA_H

#include <memory>
#include <string>

namespace TgBot {

/**
 * @brief Contains data sent from a Web App to the bot.
 *
 * @ingroup types
 */
class WebAppData {
public:
    typedef std::shared_ptr<WebAppData> Ptr;

    /**
     * @brief The data.
     * Be aware that a bad client can send arbitrary data in this field.
     */
    std::string data;

    /**
     * @brief Text of the webApp keyboard button, from which the Web App was opened.
     * Be aware that a bad client can send arbitrary data in this field.
     */
    std::string buttonText;
};
}

#endif //TGBOT_WEBAPPMESSAGE_H