Fix issue #920 Wrong API path for SetStickerSetThumb

This commit is contained in:
Herindra Setiawan 2021-05-18 13:56:11 +07:00
parent 02fdbec4cc
commit 09cdf87724
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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();