blob: cdef75a4dbf29cc4fecd299f542c178a3773b8ab (
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
|
#ifndef TGBOT_CPP_KEYBOARDBUTTONPOLLTYPE_H
#define TGBOT_CPP_KEYBOARDBUTTONPOLLTYPE_H
#include <string>
#include <memory>
namespace TgBot {
/**
* @brief This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
*
* @ingroup types
*/
class KeyboardButtonPollType {
public:
typedef std::shared_ptr<KeyboardButtonPollType> Ptr;
/**
* @brief Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode.
* If regular is passed, only regular polls will be allowed.
* Otherwise, the user will be allowed to create a poll of any type.
*/
std::string type;
};
}
#endif //TGBOT_CPP_KEYBOARDBUTTONPOLLTYPE_H
|