parse: Fix sticker set name.

pull/12/head
Michael DM Dryden 2022-12-19 02:44:36 -05:00
rodzic e8ecfab466
commit 7d80fc8ed3
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
----------
Unreleased
----------
Fixed
-----
- Sticker pack names save correctly now
-------------
`0.6.4`_ - 2022-02-27
-------------

Wyświetl plik

@ -99,7 +99,7 @@ def parse_message(message: telegram.message.Message) -> Tuple[dict, List[dict]]:
elif message.sticker:
message_dict['type'] = 'sticker'
message_dict['file_id'] = message.sticker.file_id
message_dict['sticker_set_name']: message.sticker.set_name
message_dict['sticker_set_name'] = message.sticker.set_name
elif message.video:
message_dict['type'] = 'video'
elif message.video_note: