fix compilation issue

This commit is contained in:
Andrea Cavalli 2021-12-08 13:59:16 +01:00
parent 7ec1d94b5d
commit 2b54a94fd5
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ public class TestClient implements ReactorTelegramClient {
private static Message generateRandomMessage(boolean randomSender, boolean randomChat, boolean randomText) {
var msg = new Message();
msg.sender = new MessageSenderUser(312042);
msg.senderId = new MessageSenderUser(312042);
msg.chatId = 240213;
msg.id = incrementalMessageId.getAndIncrement();
var content = new MessageText();

View File

@ -479,7 +479,7 @@ public class AsyncTdEasy {
.fromCallable(this.settings::get).single().flatMap(settings -> {
if (settings.isPhoneNumberSet()) {
return sendDirectly(new SetAuthenticationPhoneNumber(String.valueOf(settings.getPhoneNumber()),
new PhoneNumberAuthenticationSettings(false, false, false)
new PhoneNumberAuthenticationSettings(false, false, false, false, null)
), false);
} else if (settings.isBotTokenSet()) {
return sendDirectly(new CheckAuthenticationBotToken(settings.getBotToken()), false);
@ -598,6 +598,7 @@ public class AsyncTdEasy {
.filterWhen(file -> Mono
.fromCallable(() -> Files.exists(file))
.subscribeOn(Schedulers.boundedElastic()))
.publishOn(Schedulers.boundedElastic())
.doOnNext(directory -> {
try {
if (!Files.walk(directory)