fix Class cast exception
This commit is contained in:
parent
76a2f47408
commit
bdb69445d4
@ -93,12 +93,12 @@ public abstract class AbsSender {
|
|||||||
return (Message) sendApiMethod(forwardMessage);
|
return (Message) sendApiMethod(forwardMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
public File sendLocation(SendLocation sendLocation) throws TelegramApiException {
|
public Message sendLocation(SendLocation sendLocation) throws TelegramApiException {
|
||||||
if (sendLocation == null) {
|
if (sendLocation == null) {
|
||||||
throw new TelegramApiException("Parameter sendLocation can not be null");
|
throw new TelegramApiException("Parameter sendLocation can not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
return (File) sendApiMethod(sendLocation);
|
return (Message) sendApiMethod(sendLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserProfilePhotos getUserProfilePhotos(GetUserProfilePhotos getUserProfilePhotos) throws TelegramApiException {
|
public UserProfilePhotos getUserProfilePhotos(GetUserProfilePhotos getUserProfilePhotos) throws TelegramApiException {
|
||||||
|
Loading…
Reference in New Issue
Block a user