File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
library/src/main/java/com/pengrad/telegrambot/request Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11package com .pengrad .telegrambot .request ;
22
33import com .pengrad .telegrambot .model .MaskPosition ;
4+ import com .pengrad .telegrambot .model .Sticker .Type ;
45import com .pengrad .telegrambot .response .BaseResponse ;
56
67/**
@@ -44,4 +45,13 @@ public CreateNewStickerSet containsMasks(boolean containsMasks) {
4445 public CreateNewStickerSet maskPosition (MaskPosition maskPosition ) {
4546 return add ("mask_position" , maskPosition ).containsMasks (true );
4647 }
48+
49+ /**
50+ * Type of stickers in the set.
51+ * @param stickerType pass “regular” or “mask”. "custom_emoji" is defaulted to "regular".
52+ * @return a CreateNewStickerSet object
53+ */
54+ public CreateNewStickerSet stickerType (Type stickerType ) {
55+ return add ("sticker_type" , stickerType .name ());
56+ }
4757}
You can’t perform that action at this time.
0 commit comments