add method hasAudio and method hasVoice to Message class
This commit is contained in:
parent
b099cb6f4e
commit
21a308079c
@ -381,6 +381,14 @@ public class Message implements BotApiObject {
|
|||||||
return this.video != null;
|
return this.video != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasAudio(){
|
||||||
|
return this.audio != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasVoice(){
|
||||||
|
return this.voice != null;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isReply() {
|
public boolean isReply() {
|
||||||
return this.replyToMessage != null;
|
return this.replyToMessage != null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user