TDLightTelegramBots/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/ResponseParameters.java

60 lines
2.1 KiB
Java
Raw Normal View History

2016-09-29 00:44:03 +02:00
/*
* This file is part of TelegramBots.
*
* TelegramBots is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TelegramBots is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TelegramBots. If not, see <http://www.gnu.org/licenses/>.
*/
2018-07-08 01:41:21 +02:00
package org.telegram.telegrambots.meta.api.objects;
2016-09-29 00:44:03 +02:00
import com.fasterxml.jackson.annotation.JsonProperty;
2020-11-01 23:46:36 +01:00
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
2018-07-08 01:41:21 +02:00
import org.telegram.telegrambots.meta.api.interfaces.BotApiObject;
2016-09-29 00:44:03 +02:00
/**
* Contains information about why a request was unsuccessfull.
2016-09-29 00:44:03 +02:00
* @author Ruben Bermudez
* @version 1.0
*/
2020-11-01 23:46:36 +01:00
@EqualsAndHashCode(callSuper = false)
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ResponseParameters implements BotApiObject {
2016-09-29 00:44:03 +02:00
private static final String MIGRATETOCHATID_FIELD = "migrate_to_chat_id";
private static final String RETRYAFTER_FIELD = "retry_after";
/**
* 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.
*/
@JsonProperty(MIGRATETOCHATID_FIELD)
2018-04-01 12:37:28 +02:00
private Long migrateToChatId;
2016-09-29 00:44:03 +02:00
/**
* Optional. In case of exceeding flood control a number of seconds to
* wait before the request can be repeated
*/
@JsonProperty(RETRYAFTER_FIELD)
2016-09-29 00:44:03 +02:00
private Integer retryAfter;
}