//
// Created by Konstantin Kukin on 26/12/16.
//

#ifndef TGBOT_RESPONSEPARAMETERS_H
#define TGBOT_RESPONSEPARAMETERS_H

#include <memory>

namespace TgBot {

/**
 * Contains information about why a request was unsuccessfull.
 * @ingroup types
 */
class ResponseParameters {
public:
	typedef std::shared_ptr<ResponseParameters> Ptr;

	/**
	 * 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.
	 */
	int32_t migrateToChatId;

	/**
	 * Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
	 */
	int32_t retryAfter;
};
}

#endif //TGBOT_RESPONSEPARAMETERS_H
