From 025be6eefd6fb9970235d5b12dbc8b7225015741 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Sun, 1 Apr 2018 12:40:58 +0200 Subject: [PATCH] Closes #364 --- .../java/org/telegram/telegrambots/api/objects/Message.java | 4 ++++ 1 file changed, 4 insertions(+) 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; }