Class ResponseParameters

java.lang.Object
io.micronaut.chatbots.telegram.api.ResponseParameters

public class ResponseParameters extends Object
Contains information about why a request was unsuccessful.
See Also:
  • Constructor Details

    • ResponseParameters

      public ResponseParameters()
  • Method Details

    • getMigrateToChatId

      @Nullable public @Nullable Long getMigrateToChatId()
      Returns:
      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.
    • setMigrateToChatId

      public void setMigrateToChatId(@Nullable @Nullable Long migrateToChatId)
      Parameters:
      migrateToChatId - 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.
    • getRetryAfter

      @Nullable public @Nullable Integer getRetryAfter()
      Returns:
      In case of exceeding flood control, the number of seconds left to wait before the request can be repeated.
    • setRetryAfter

      public void setRetryAfter(@Nullable @Nullable Integer retryAfter)
      Parameters:
      retryAfter - In case of exceeding flood control, the number of seconds left to wait before the request can be repeated.
    • toString

      public String toString()
      Overrides:
      toString in class Object