add method hasAudio and method hasVoice to Message class

This commit is contained in:
robatioor 2019-03-02 16:44:12 +03:30
parent b099cb6f4e
commit 21a308079c

View File

@ -381,6 +381,14 @@ public class Message implements BotApiObject {
return this.video != null;
}
public boolean hasAudio(){
return this.audio != null;
}
public boolean hasVoice(){
return this.voice != null;
}
public boolean isReply() {
return this.replyToMessage != null;
}