mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 03:20:25 +01:00
If comment is sent by the user, different structure of the data is sent. First of all, the type of this message is "message", but it contain dictionary under 'comment' key, which can be confusing, which contain needed data (like user id). For this kind of messages, in case of lack of 'user' in main dict, dict['comment']['user'] will be used for getting user identifier, while dict['text'] remains as a message text.