Mads Marquart
d11f417caa
Make logins persistent
2020-05-07 10:56:47 +02:00
Mads Marquart
3b71258f2c
Fix tests
2020-05-07 10:23:29 +02:00
Mads Marquart
81584d328b
Add more session tests and small error improvements
2020-05-07 10:15:51 +02:00
Mads Marquart
7be2acad7d
Initial re-add of 2FA
2020-05-06 23:34:27 +02:00
Mads Marquart
079d4093c4
Use messenger.com URLs instead of facebook.com
...
This should allow people who have only created a messenger account to
log in.
Also parse required `fb_dtsg` and `client_revision` values better.
The 2-fa flow is removed for now, I'll re-add it later.
2020-05-06 21:57:24 +02:00
Mads Marquart
cce947b18c
Fix docs warnings
2020-05-06 13:31:09 +02:00
Mads Marquart
2545a01450
Re-add a few online tests, to easily check when Facebook breaks stuff
2020-05-06 13:31:09 +02:00
Mads Marquart
5d763dfbce
Merge pull request #559 from xaadu/patch-1
...
Fix mistake in session handling example
2020-05-06 11:33:21 +02:00
Mads Marquart
0981be42b9
Fix errors in examples
2020-05-06 11:32:22 +02:00
Abdullah Zayed
93b71bf198
First Object then File Pointer
...
json.dump() receives object as first argument and File Pointer as 2nd argument.
2020-04-28 12:58:19 +06:00
Mads Marquart
af3758c8a9
Fix TitleSet.title attribute
2020-03-13 11:21:33 +01:00
Mads Marquart
f64c487a2d
Bump version: 2.0.0a1 -> 2.0.0a2
v2.0.0a2
2020-03-11 15:45:02 +01:00
Mads Marquart
11534604fe
Remove user agent randomization
...
Caused problems with logging in, and didn't really help on anything
2020-03-11 15:44:34 +01:00
Mads Marquart
9990952fa6
Add Connect and Disconnect events
2020-03-11 15:27:00 +01:00
Mads Marquart
7ee7361646
Clean up event parsing
2020-03-11 15:10:25 +01:00
Mads Marquart
89c6af516c
Fix various documentation mistakes
2020-03-11 15:00:50 +01:00
Mads Marquart
c27f599e37
Fix type specifiers in models
2020-03-11 14:43:28 +01:00
Mads Marquart
ef95aed208
Bump version: 1.9.6 -> 2.0.0a1
v2.0.0a1
2020-03-11 14:25:33 +01:00
Mads Marquart
8aaed0c76a
Remove bump2version
2020-03-11 13:20:19 +01:00
Mads Marquart
6dbcb8cc47
Don't mandate a specific way to handle listening events (for now)
2020-03-11 12:37:34 +01:00
Mads Marquart
6660fd099d
Fix uploading, and move it to Client.upload (making it public again)
2020-03-11 11:48:04 +01:00
Mads Marquart
e6ec5c5194
Redo jsmods loading and fb_dtsg retrieving
2020-03-11 11:23:39 +01:00
Mads Marquart
13e0eb7fcf
Fix typo
2020-03-11 10:25:40 +01:00
Mads Marquart
7bdacb91ba
Add shortcuts to easily delete threads/messages
2020-02-05 18:45:20 +01:00
Mads Marquart
94c985cb10
Fix ThreadABC.fetch_messages ordering, and clean up a few docstrings
2020-02-05 17:22:06 +01:00
Mads Marquart
0f4ee33d2a
Fix failing test for NotLoggedIn
2020-02-05 15:29:57 +01:00
Mads Marquart
4df1d5e0d4
Merge branch 'mqtt-improve'
2020-02-05 14:29:51 +01:00
Mads Marquart
085bbba302
Improve listening usability
...
Add Listener.register and Listener.run
2020-02-05 14:27:08 +01:00
Mads Marquart
ae2bb41509
Small listening fixes
...
- If an error is raised in fetch_sequence_id, don't swallow it!
2020-02-05 13:50:01 +01:00
Mads Marquart
9c03c1035b
Allow initializing the MQTT Listener without making external requests
2020-01-25 15:07:40 +01:00
Mads Marquart
987993701f
Fix NotLoggedIn
2020-01-25 15:07:04 +01:00
Mads Marquart
f8e110f180
Handle connecting in Listener.listen
2020-01-25 14:50:15 +01:00
Mads Marquart
2da8369c70
Refactor and improve MQTT listener a bit
2020-01-25 14:39:58 +01:00
Mads Marquart
588c93467e
Merge branch 'v1'
2020-01-25 14:03:53 +01:00
Mads Marquart
01effb34b4
Add Session.user in favor of Session.user_id
2020-01-25 11:42:32 +01:00
Mads Marquart
2c8dfc02c2
Add ThreadABC copy helper
2020-01-25 11:41:52 +01:00
Mads Marquart
064707ac23
Add error handling for when the listener has been logged out
2020-01-24 21:19:58 +01:00
Mads Marquart
eaacaaba8d
Fix yet another typo
2020-01-24 21:13:14 +01:00
Mads Marquart
2cb43ff0b0
Fix typo
2020-01-23 16:56:15 +01:00
Mads Marquart
16081fbb19
Clean up utility functions
2020-01-23 16:19:09 +01:00
Mads Marquart
4015bed474
Move ThreadLocation, ActiveStatus and Image to _models/ folder
2020-01-23 15:19:41 +01:00
Mads Marquart
c71c1d37c2
Small cleanup of event parsing
2020-01-23 14:56:28 +01:00
Mads Marquart
1776c3aa45
Add test for fixup_module_metadata
2020-01-23 14:34:12 +01:00
Mads Marquart
a1fc235327
Refactor models file structure
2020-01-23 14:22:36 +01:00
Mads Marquart
2aea401c79
Refactor threads file structure
2020-01-23 14:06:26 +01:00
Mads Marquart
c83836ceed
Rename _core.py -> _common.py
2020-01-23 14:06:26 +01:00
Mads Marquart
3efeffe6dd
Refactor events file structure
2020-01-23 14:06:26 +01:00
Mads Marquart
45a71fd1a3
Add inline examples
2020-01-23 12:07:40 +01:00
Mads Marquart
0d139cee73
Fix frozen MQTT instances
2020-01-23 11:26:30 +01:00
Mads Marquart
89f90ef849
Make all models frozen, and sessions hashable
2020-01-23 10:18:33 +01:00