@@ -1342,12 +1342,17 @@ public void uploadStickerFile() throws IOException {
1342
1342
1343
1343
@ Test
1344
1344
public void createNewPngStickerSet () {
1345
+ String name = "test" + System .currentTimeMillis () + "_by_pengrad_test_bot" ;
1345
1346
BaseResponse response = bot .execute (
1346
- CreateNewStickerSet .pngSticker (chatId , "test" + System .currentTimeMillis () + "_by_pengrad_test_bot" ,
1347
- "test1" , "\uD83D \uDE00 " , stickerFile )
1347
+ CreateNewStickerSet .pngSticker (chatId , name , "test1" , "\uD83D \uDE00 " , stickerFile )
1348
1348
.stickerType (Sticker .Type .mask )
1349
1349
.maskPosition (new MaskPosition (MaskPosition .Point .forehead , 0f , 0f , 1f )));
1350
1350
assertTrue (response .isOk ());
1351
+
1352
+ response = bot .execute (new AddStickerToSet (chatId , name ,
1353
+ new InputSticker (stickerFile , new String []{"\uD83D \uDE00 " }))
1354
+ .maskPosition (new MaskPosition ("eyes" , 0f , 0f , 1f )));
1355
+ assertTrue (response .isOk ());
1351
1356
}
1352
1357
1353
1358
@ Test
@@ -1442,6 +1447,9 @@ public void setStickerSetThumb() {
1442
1447
BaseResponse response = bot .execute (new SetStickerSetThumb (stickerSetAnim , chatId , thumbFile ));
1443
1448
assertTrue (response .isOk ());
1444
1449
1450
+ response = bot .execute (new SetStickerSetThumbnail (stickerSetAnim , chatId , thumbFile ));
1451
+ assertTrue (response .isOk ());
1452
+
1445
1453
StickerSet set = bot .execute (new GetStickerSet (stickerSetAnim )).stickerSet ();
1446
1454
assertTrue (set .isAnimated ());
1447
1455
PhotoSize thumb = set .thumb ();
@@ -1453,6 +1461,9 @@ public void setStickerSetThumb() {
1453
1461
// clear thumb by not sending it
1454
1462
response = bot .execute (new SetStickerSetThumb (stickerSetAnim , chatId ));
1455
1463
assertTrue (response .isOk ());
1464
+
1465
+ response = bot .execute (new SetStickerSetThumbnail (stickerSetAnim , chatId ));
1466
+ assertTrue (response .isOk ());
1456
1467
}
1457
1468
1458
1469
@ Test
0 commit comments