Merge pull request #583 from robatipoor/master
add hasAudio and hasVoice method in Message class
This commit is contained in:
commit
a4c7d73f0a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user