Merge pull request #583 from robatipoor/master

add hasAudio and hasVoice method in Message class
This commit is contained in:
Ruben Bermudez 2019-04-03 01:20:31 +01:00 committed by GitHub
commit a4c7d73f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}