This commit is contained in:
Ruben Bermudez 2019-04-03 02:18:53 +01:00
parent d20cf9d4bd
commit 140574f54e

View File

@ -9,6 +9,7 @@ import org.telegram.telegrambots.meta.api.objects.payments.Invoice;
import org.telegram.telegrambots.meta.api.objects.payments.SuccessfulPayment;
import org.telegram.telegrambots.meta.api.objects.stickers.Sticker;
import java.util.ArrayList;
import java.util.List;
/**
@ -282,7 +283,7 @@ public class Message implements BotApiObject {
}
public List<User> getNewChatMembers() {
return newChatMembers;
return newChatMembers == null ? new ArrayList<>() : newChatMembers;
}
public User getLeftChatMember() {