Merge pull request #921 from AssasinCross/master
Fix issue #920 Wrong API path for SetStickerSetThumb
This commit is contained in:
commit
5c1bf4a0f4
@ -31,7 +31,7 @@ import java.io.IOException;
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class SetStickerSetThumb extends BotApiMethod<Boolean> {
|
||||
private static final String PATH = "setStickerSetThumb";
|
||||
public static final String PATH = "setStickerSetThumb";
|
||||
|
||||
public static final String NAME_FIELD = "name";
|
||||
public static final String USERID_FIELD = "user_id";
|
||||
|
@ -610,7 +610,7 @@ public abstract class DefaultAbsSender extends AbsSender {
|
||||
assertParamNotNull(setStickerSetThumb, "setStickerSetThumb");
|
||||
setStickerSetThumb.validate();
|
||||
try {
|
||||
String url = getBaseUrl() + AddStickerToSet.PATH;
|
||||
String url = getBaseUrl() + SetStickerSetThumb.PATH;
|
||||
HttpPost httppost = configuredHttpPost(url);
|
||||
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
|
||||
builder.setLaxMode();
|
||||
@ -623,7 +623,7 @@ public abstract class DefaultAbsSender extends AbsSender {
|
||||
|
||||
return setStickerSetThumb.deserializeResponse(sendHttpPostRequest(httppost));
|
||||
} catch (IOException e) {
|
||||
throw new TelegramApiException("Unable to add sticker to set", e);
|
||||
throw new TelegramApiException("Unable to set sticker set thumb", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user