Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

Direct message support#15

Open
danhallock wants to merge 2 commits intocdzombak:masterfrom
danhallock:direct-message-support
Open

Direct message support#15
danhallock wants to merge 2 commits intocdzombak:masterfrom
danhallock:direct-message-support

Conversation

@danhallock
Copy link
Copy Markdown

I added support for downloading a transcript of a direct message session, in addition to group chats. This is literally my first time touching Python, so it might be worth looking it over to make sure I didn't do anything stupid before you accept it, but it worked for me :)

I used .get and a default "None" value in a couple of places where the JSON structure for the direct message is different than for a group chat message, and added the direct message URL, handling of the way images are attached to DMs, and a --mode switch to allow passing in the other_user_id for DMs.

Append sys.path[0] to the assets paths so that the copy will succeed
even if the current working directory is not the script directory.
Add support for direct messages in addition to group chats. Added a new
--mode command line switch, defaults to group.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant