Skip to content

Commit

Permalink
Add missing parse mode parameter to EditMessageCaption (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkotb authored Aug 30, 2020
1 parent 2ef5da4 commit 74ac8d8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@
import com.jtelegram.api.ex.TelegramException;
import com.jtelegram.api.message.CaptionableMessage;
import com.jtelegram.api.message.Message;
import com.jtelegram.api.message.impl.GameMessage;
import com.jtelegram.api.requests.message.framework.req.EditMessageRequest;
import com.jtelegram.api.requests.message.framework.ParseMode;
import com.jtelegram.api.requests.message.framework.ReplyMarkup;
import java.util.Objects;
import com.jtelegram.api.requests.message.framework.req.EditMessageRequest;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import java.util.Objects;
import java.util.function.Consumer;

@Getter
@ToString
@EqualsAndHashCode(callSuper = true)
public class EditMessageCaption extends EditMessageRequest<Message> {
private String caption;
private ParseMode parseMode;

@Builder
public EditMessageCaption(Consumer<Message> callback, Consumer<TelegramException> errorHandler, ChatId chatId, int messageId, String inlineMessageId, ReplyMarkup replyMarkup, String caption) {
public EditMessageCaption(Consumer<Message> callback, Consumer<TelegramException> errorHandler, ChatId chatId, int messageId, String inlineMessageId, ReplyMarkup replyMarkup, String caption, ParseMode parseMode) {
super("editMessageCaption", Message.class, callback, errorHandler, chatId, messageId, inlineMessageId, replyMarkup);
this.caption = caption;
this.parseMode = parseMode;
}

/**
Expand Down

0 comments on commit 74ac8d8

Please sign in to comment.