Closes #368
This commit is contained in:
parent
025be6eefd
commit
e53f0bd9ef
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user