Skip to content

Commit e2ed4cf

Browse files
authored
Merge pull request eternnoir#387 from fumycat/patch-1
Fix optional parameter
2 parents 41e31de + af991ea commit e2ed4cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎telebot/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def create_new_sticker_set(self, user_id, name, title, png_sticker, emojis, cont
996996
return apihelper.create_new_sticker_set(self.token, user_id, name, title, png_sticker, emojis, contains_masks,
997997
mask_position)
998998

999-
def add_sticker_to_set(self, user_id, name, png_sticker, emojis, mask_position):
999+
def add_sticker_to_set(self, user_id, name, png_sticker, emojis, mask_position=None):
10001000
"""
10011001
Use this method to add a new sticker to a set created by the bot. Returns True on success.
10021002
:param user_id:

0 commit comments

Comments
 (0)