Class EditTextMessage

    • Constructor Detail

      • EditTextMessage

        public EditTextMessage​(java.util.function.Consumer<TextMessage> callback,
                               java.util.function.Consumer<TelegramException> errorHandler,
                               ChatId chatId,
                               int messageId,
                               java.lang.String inlineMessageId,
                               ReplyMarkup replyMarkup,
                               java.lang.String text,
                               ParseMode parseMode,
                               boolean disableWebPagePreview)
    • Method Detail

      • forMessage

        public static EditTextMessage.EditTextMessageBuilder forMessage​(TextMessage message)
        Creates a request builder to edit the text of the specified message.
        Parameters:
        message - the message that will be edited when the request is executed
        Returns:
        the request builder
      • forMessage

        public static EditTextMessage.EditTextMessageBuilder forMessage​(GameMessage message)
        Creates a request builder to edit the text of the specified message.
        Parameters:
        message - the message that will be edited when the request is executed
        Returns:
        the request builder
      • forInlineMessage

        public static EditTextMessage.EditTextMessageBuilder forInlineMessage​(java.lang.String inlineMessageId)
        Creates a request builder to edit the text of the specified message.
        Parameters:
        inlineMessageId - the ID of the inline message that will be edited when the request is executed
        Returns:
        the request builder
      • getText

        public java.lang.String getText()
      • getParseMode

        public ParseMode getParseMode()
      • getDisableWebPagePreview

        public java.lang.Boolean getDisableWebPagePreview()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object