Skip to content

Commit

Permalink
fix(stickers): fix filename of downloaded stickers
Browse files Browse the repository at this point in the history
Signed-off-by: ksdfg <ksdfg123@gmail.com>
  • Loading branch information
ksdfg committed May 30, 2022
1 parent fc902da commit df548ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telebot/modules/stickers.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def kang(update: Update, context: CallbackContext) -> None:

# file name to download sticker file as
rendum_str = uuid4()
kang_sticker = f"{user.id}_{rendum_str}_kang_sticker." + "tgs" if is_animated else "png"
kang_sticker = f"{user.id}_{rendum_str}_kang_sticker.{'tgs' if is_animated else 'png'}"

# If user has replied to some message
if is_animated:
Expand Down

0 comments on commit df548ee

Please sign in to comment.