blob: 9168d152e8b648936a41f3370f24f8756a6d15ab (
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
33
34
|
#ifndef TGBOT_RESPONSEPARAMETERS_H
#define TGBOT_RESPONSEPARAMETERS_H
#include <cstdint>
#include <memory>
namespace TgBot {
/**
* @brief Contains information about why a request was unsuccessfull.
*
* @ingroup types
*/
class ResponseParameters {
public:
typedef std::shared_ptr<ResponseParameters> Ptr;
/**
* @brief Optional. The group has been migrated to a supergroup with the specified identifier.
*
* This number may be greater than 32 bits and some programming languages may have
* difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a
* signed 64 bit integer or double-precision float type are safe for storing this identifier.
*/
std::int64_t migrateToChatId;
/**
* @brief Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
*/
std::int32_t retryAfter;
};
}
#endif //TGBOT_RESPONSEPARAMETERS_H
|