Fix Chat sticker_set_name

This commit is contained in:
Dan 2019-01-21 18:35:11 +01:00
parent f4b4496995
commit cb0b8ebeae

View file

@ -197,7 +197,7 @@ class Chat(PyrogramType):
parsed_chat.description = full_chat.about or None
# TODO: Add StickerSet type
parsed_chat.can_set_sticker_set = full_chat.can_set_stickers
parsed_chat.sticker_set_name = full_chat.stickerset
parsed_chat.sticker_set_name = getattr(full_chat.stickerset, "short_name", None)
if full_chat.pinned_msg_id:
parsed_chat.pinned_message = client.get_messages(