Class ReplyParameters

java.lang.Object
io.github.natanimn.telebof.types.keyboard.ReplyParameters
All Implemented Interfaces:
Serializable

public class ReplyParameters extends Object implements Serializable
Describes reply parameters for the message that is being sent.
Since:
3 March 2025
See Also:
  • Constructor Details

    • ReplyParameters

      public ReplyParameters(int message_id)
      Required
      Parameters:
      message_id - Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified
  • Method Details

    • chatId

      public ReplyParameters chatId(Object chat_id)
      Optional
      Parameters:
      chat_id - If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account.
      Returns:
      ReplyParameters
    • allowSendingWithoutReply

      public ReplyParameters allowSendingWithoutReply(boolean allow_sending_without_reply)
      Optional
      Parameters:
      allow_sending_without_reply - Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.
      Returns:
      ReplyParameters
    • quote

      public ReplyParameters quote(String quote)
      Optional
      Parameters:
      quote - Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.
      Returns:
      ReplyParameters
    • quoteParseMode

      public ReplyParameters quoteParseMode(ParseMode quote_parse_mode)
      Optional
      Parameters:
      quote_parse_mode - Mode for parsing entities in the quote.
      Returns:
      ReplyParameters
    • quoteEntities

      public ReplyParameters quoteEntities(MessageEntity[] quote_entities)
      Optional
      Parameters:
      quote_entities - A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quoteParseMode(ParseMode).
      Returns:
      ReplyParameters
    • quotePosition

      public ReplyParameters quotePosition(Integer quote_position)
      Optional
      Parameters:
      quote_position - Position of the quote in the original message in UTF-16 code units
      Returns:
      ReplyParameters
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object