Added functionality to add attachments#208
Open
p1ho wants to merge 11 commits intoAlex-Rose:masterfrom
Open
Conversation
…ers, added some comments
Updated getDisplayName() to help distinguish where messages start when the fb-messenger-cli user writes consecutive messages that all wrap around the screen.
…n powershell Powershell users will have to disable colors in group convos or change their color scheme
Owner
|
Hey @p1ho this is pretty cool! Sorry for the late reply, I'll give it a shot and hopefully FB didn't change their API too much so this still works |
Author
|
Awesome! Excited to hear your feedback! I've also added a screenshot of it working above. |
…ers, added some comments
…nger-cli into feature-attachment
Author
|
@Alex-Rose |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Original Issue: #90
Added ability to attach file in cli
you can do
>/a <absolute-path-to-file>(/attachworks too) to upload a file to a thread.Different file types are taken care of:
if a file is not accepted by facebook, it will log a deny message.
How does this work?
This works by first uploading the file to
https://upload.messenger.com/ajax/mercury/upload.php, if it succeeds with no errors, it will return a body with the id of the file you uploaded.You can then append this id to the form data and POST it to
https://www.messenger.com/messaging/send/(the same endpoint where messages are sent)Notes
.exefiles), it will log a denied message