This commit is contained in:
Ruben Bermudez 2018-04-01 12:49:39 +02:00
parent 025be6eefd
commit e53f0bd9ef
1 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import org.telegram.telegrambots.exceptions.TelegramApiRequestException;
import org.telegram.telegrambots.exceptions.TelegramApiValidationException;
import java.io.IOException;
import java.util.Objects;
import static com.google.common.base.Preconditions.checkNotNull;
@ -62,6 +63,12 @@ public class DeleteMessage extends BotApiMethod<Boolean> {
return this;
}
public DeleteMessage setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString();
return this;
}
public Integer getMessageId() {
return messageId;
}