diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/Message.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/Message.java index 76d56c1e..c4210256 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/Message.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/objects/Message.java @@ -397,6 +397,10 @@ public class Message implements BotApiObject { return successfulPayment != null; } + public boolean hasContact() { + return contact != null; + } + public Invoice getInvoice() { return invoice; }