From 3534fa789deab2b4fbf4ca14e336ff5ad2301c12 Mon Sep 17 00:00:00 2001 From: Relecto Date: Mon, 2 Apr 2018 22:38:29 +0600 Subject: [PATCH] Added hasVideo() method to Message --- .../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 c4210256..449e93f7 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 @@ -357,6 +357,10 @@ public class Message implements BotApiObject { return this.document != null; } + public boolean hasVideo() { + return this.video != null; + } + public boolean isReply() { return this.replyToMessage != null; }