Added SendAnimation Method
This commit is contained in:
parent
eaaf6c506b
commit
021ac53f45
|
@ -116,6 +116,18 @@ public class TUser {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
public void sendAnimation(String caption, String url) {
|
||||
try {
|
||||
String cap = "";
|
||||
if(caption != null) {
|
||||
if(!caption.isEmpty())
|
||||
cap = "&caption=" + caption;
|
||||
}
|
||||
api.request("sendAnimation", "chat_id" + id + cap + "&animation=" + url);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object user) {
|
||||
|
|
Loading…
Reference in New Issue