Mads Marquart
e0754031ad
Extract pull channel handling from ReqUrl
2019-06-29 20:10:55 +02:00
Mads Marquart
f97d36b41f
Add ability to specify urls relative to www.facebook.com
2019-06-29 20:05:16 +02:00
Mads Marquart
bb2afe8e40
Remove redundant timeout
parameter
2019-06-23 18:25:30 +02:00
Mads Marquart
faa0383af3
Remove unnecessary default payload attributes
...
This has been fairly thoroughly tested on all URLs, so it should be safe to do
2019-06-23 18:08:25 +02:00
Mads Marquart
e1e988272b
Version up, thanks to @kapi2289
...
- Removed / privatized a lot of undocumented functionality, which might break some users application if they were relying on those (hence the minor version bump). See #432 for further reasoning
- Add `Client.forwardAttachment` and `Message.forwarded` attribute, see #420
- Fix parsing subattachments with no target, see #412
- Lots of other refactoring, aka. work on the transition towards v2
v1.7.0
2019-06-23 18:02:05 +02:00
Mads Marquart
b159f04a6b
Merge pull request #432 from carpedm20/undocumented-breaking-changes
...
Undocumented breaking changes
2019-06-23 17:51:37 +02:00
Mads Marquart
d91a7ea9e3
Remove internal stuff from _graphql in __init__.py
2019-06-23 17:44:03 +02:00
Mads Marquart
8056f3399e
Privatize Client.req_url
...
Undocumented
2019-06-23 17:40:20 +02:00
Mads Marquart
fd9aa7ee90
Remove client.py
...
Undocumented
2019-06-23 17:38:42 +02:00
Mads Marquart
53c19f473b
Remove utils.py
...
The file, and contained functions, were explicitly documented as something you couldn't rely on for backwards compatibility
2019-06-23 17:38:27 +02:00
Mads Marquart
78b5f05729
Fix search
when the result is empty
...
Return an empty result instead of raising
2019-05-01 23:50:23 +02:00
Mads Marquart
f689376830
Fix check_json
...
The payload is sometimes a list
2019-05-01 23:49:29 +02:00
Mads Marquart
d244856b41
Fix setting forwarded
when creating Message objects
2019-05-01 23:18:12 +02:00
Kacper Ziubryniewicz
3cd0f3a9a7
Add missing mid parameter in message parsing ( #426 )
2019-05-01 19:32:04 +02:00
Mads Marquart
f480d68b57
Fix subattachment target
parsing, fixes #412
2019-04-25 23:26:04 +02:00
Mads Marquart
db2bda1f9b
Fix ShareAttachment GraphQL source
parsing
...
Fixes #418
2019-04-25 23:26:03 +02:00
Kacper Ziubryniewicz
f834c01921
Fix sending remote files with URLs containing GET parameters or hashtags ( #423 )
2019-04-25 22:50:32 +02:00
Mads Marquart
f945fa80b3
Merge pull request #419 from carpedm20/remove-client-variables
...
Clean up `Client` variables
2019-04-25 22:45:45 +02:00
Kacper Ziubryniewicz
70faa86e34
Add forwarding attachments ( #420 )
...
- Add ability to forward attachments and `Message.forwarded` attribute
- Improve error handling for a lot of client methods, including, but not limited to:
- `fetchAllUsers`
- `searchForMessageIDs`
- `search`
- `fetchThreadInfo` and siblings
- `fetchUnread`
- `fetchUnseen`
- `fetchPollOptions`
- `fetchPlanInfo`
- `send` and siblings
- File uploads
2019-04-25 22:03:03 +02:00
Mads Marquart
61502ed32a
Merge pull request #406 from carpedm20/refactor-model-parsing
...
Refactor model parsing
2019-04-25 21:06:26 +02:00
Mads Marquart
bfca20bb12
Privatize req_counter, payloadDefault and seq client variables
...
These have complicated semantics, and so are hopefully not depended on externally
2019-04-17 23:24:01 +02:00
Mads Marquart
0fd86d05a1
Privatize sticky and pool client variables
...
These have complicated semantics, and so are hopefully not depended on externally
2019-04-17 23:22:54 +02:00
Mads Marquart
c688d64062
Make Client.uid read-only
...
Modifying `uid` was previously documented as giving undefined behaviour, now it'll throw an error
2019-04-17 23:22:23 +02:00
Mads Marquart
2f973f129d
Privatize default_thread_X client variables
...
We have a setter method for them, so there should be no need to access these directly!
2019-04-17 23:20:08 +02:00
Mads Marquart
9b81365b0a
Privatize fb_h
and client_id
variables
...
These are sparsely used and badly named, so probably not externally depended on externally
2019-04-17 23:20:08 +02:00
Mads Marquart
a079797fca
Remove email/password client variables
2019-04-17 23:18:37 +02:00
Mads Marquart
6ab298f6e8
Remove temporary _postLogin
variables from the client
2019-04-17 23:18:37 +02:00
Mads Marquart
a159999879
Remove redundant client variables
2019-04-17 23:18:37 +02:00
Mads Marquart
a71835a5b8
Version up, thanks to @kapi2289 and @LukasOndrejka
v1.6.5
2019-04-17 22:58:37 +02:00
Mads Marquart
86a6e07804
Merge branch 'master' into refactor-model-parsing
2019-04-17 22:42:20 +02:00
Kacper Ziubryniewicz
73c6be1969
Add message parameter to sending location ( #416 )
2019-04-17 22:35:04 +02:00
Kacper Ziubryniewicz
7db7868d2b
Fix forwarding replied messages ( #417 )
2019-04-17 22:34:19 +02:00
Mads Marquart
18ec1f5680
Merge branch 'master' into refactor-model-parsing
2019-04-17 22:06:07 +02:00
Mads Marquart
8e65074b11
Hotfixes
...
Fix mistakes introduced in #415
2019-04-17 21:56:50 +02:00
Mads Marquart
d720438aef
Merge pull request #415 from carpedm20/cleanup
...
Cleanup
2019-04-17 21:11:18 +02:00
Mads Marquart
ec0e3a91d1
Merge branch 'master' into cleanup
2019-04-17 20:50:08 +02:00
Mads Marquart
48e7203ca6
Rename internal variable
2019-04-17 20:47:49 +02:00
Mads Marquart
4f76b79629
Merge pull request #409 from kapi2289/message-reply
...
Add replying to messages
2019-04-17 20:44:30 +02:00
Mads Marquart
1eeae78a9f
Small refactoring
...
The `muteX` methods return values are now checked using `check_request`, `seq` is now parsed in `_parseMessage` and a few other things.
2019-03-31 00:16:36 +01:00
Mads Marquart
bc27f756ed
Split long strings, use format when creating strings
2019-03-31 00:11:20 +01:00
Mads Marquart
6302d5fb8b
Split overly nested calls
2019-03-31 00:07:29 +01:00
Mads Marquart
24e238c425
Remove superfluous whitespace
2019-03-31 00:02:49 +01:00
Mads Marquart
070f57fcc4
Refactor _graphql
away
2019-03-30 21:20:20 +01:00
Kacper Ziubryniewicz
a4ce45e9b0
Add detecting replied messages while listening
2019-03-29 21:09:19 +01:00
Kacper Ziubryniewicz
a3efa7702a
Add possibility to reply to messages
...
and to (partly) fetch the replied messages
2019-03-23 21:26:43 +01:00
LukasOndrejka
d7a5d00439
Add new colors ( #393 )
...
Color names are from https://www.htmlcsscolor.com/
2019-03-12 18:15:11 +01:00
Mads Marquart
6636d49cc0
Remove graphql.py
2019-03-10 20:30:22 +01:00
Mads Marquart
8e6ee4636e
Move gender dict into _user.py
2019-03-10 20:25:02 +01:00
Mads Marquart
71f19dd3c7
Move fetchAllUsers parsing into User._from_all_fetch
2019-03-10 20:22:56 +01:00
Mads Marquart
e166b472c5
Move message pull parsing into Message._from_pull
2019-03-10 20:10:19 +01:00