Added SendAnimation Method

This commit is contained in:
Thiesyy 2019-02-05 21:56:31 +01:00
parent eaaf6c506b
commit 021ac53f45
No known key found for this signature in database
GPG Key ID: 7A3EF0EAFF96C7F2
1 changed files with 12 additions and 0 deletions

View File

@ -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) {