Fix issue #920 Wrong API path for SetStickerSetThumb
This commit is contained in:
parent
02fdbec4cc
commit
09cdf87724
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user