This repository was archived by the owner on Jan 19, 2018. It is now read-only.
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.