Lonami Exo
334e6cc6a0
Move HTTP codec
2019-06-16 16:07:16 +02:00
Lonami Exo
f082a27ff8
Make a clear distinction between connection and codec
2019-06-16 15:07:36 +02:00
Lonami Exo
f9ca17c99f
Rename is_connected as connected
...
Since it makes more sense this way, because the former sounds
like a method when it's not.
2019-06-16 11:44:01 +02:00
Lonami Exo
6d4c8ba8ff
Handle documents inside albums
...
With the cleanup on f813759
, this will now work cleanly.
2019-06-16 11:39:45 +02:00
Lonami Exo
f8137595c5
Cleanup send_file and support only 10 files for albums
2019-06-16 11:31:55 +02:00
Lonami Exo
b3f0c3d2ea
Merge branch 'master' into v2
2019-06-16 11:27:19 +02:00
Lonami Exo
35ba9848d9
Fix get_extension missing even more photo cases
2019-06-16 11:15:52 +02:00
Lonami
86cdb7c1f8
Remove accidentally-committed debug print
2019-06-15 23:14:59 +02:00
Lonami Exo
bdedd2dc26
Redirect to exact match on pressing enter
2019-06-15 22:54:25 +02:00
Lonami Exo
d61bb2e87f
Document MTProto Proxy usage ( #1205 )
2019-06-15 21:54:24 +02:00
Lonami Exo
8d28d1145a
Actually fix invalid state in Conversation ( 1354bf6
followup)
2019-06-15 21:36:06 +02:00
Lonami Exo
40d32cee95
Assert that dispatched updates are Updates
2019-06-15 21:15:57 +02:00
Lonami Exo
3059ce2470
Pass loop and ssl parameters to proxy connect
2019-06-15 21:01:50 +02:00
Lonami Exo
c1a40630a3
Replace python-proxy aiosocks
...
Although it supports a lot less features, aiosocks' code is much
cleaner, and python-proxy has several asyncio-related issues.
Furthermore, python-proxy author claims:
> "pproxy is mostly used standalone"
> (in https://github.com/qwj/python-proxy/issues/43 )
2019-06-15 20:57:33 +02:00
Lonami Exo
0b69d7fd7b
Fix is_connected intent and calls from 6226fa9
2019-06-15 20:54:47 +02:00
Lonami Exo
5877459907
Create Message.mark_read()
2019-06-15 19:41:31 +02:00
Lonami Exo
1a056899d7
Fix caption when using send_file for albums / mixed documents
2019-06-15 16:59:16 +02:00
Lonami Exo
fd37e44854
Fix is_image not considering MessageMedia objects
...
This was causing albums with MessageMedia objects to fail.
2019-06-15 16:42:26 +02:00
Terrance
634d8a7898
Refactor libssl import path workarounds ( #1202 )
...
This amends the logic introduced for #1167 to only run when a plain
import of the library fails, thus avoiding the slow path traversal
needed to find the underlying library file.
2019-06-15 13:42:31 +02:00
Dmitry D. Chernov
93f4de8792
Update link to the GitHub repository of 'cryptg' package
2019-06-12 12:23:27 +10:00
Lonami Exo
51de0bd2da
Update documentation with intersphinx and better summaries
2019-06-11 11:09:22 +02:00
Lonami Exo
31a26c0a0a
Fix iter_dialogs missing dialogs once and for all
2019-06-11 10:04:36 +02:00
Lonami Exo
b8a38baaf6
Expose ignore_pinned in iter_dialogs
2019-06-11 09:55:13 +02:00
Lonami Exo
80e86e98ff
Make session, api ID and hash private
2019-06-07 21:12:27 +02:00
Lonami Exo
9bafcdfe0f
sign_in should not send_code_request
2019-06-07 21:06:21 +02:00
Lonami Exo
6226fa95ce
is_connected should be a property
2019-06-07 20:59:03 +02:00
Lonami Exo
78971fd2e5
Remove file caching
2019-06-07 20:57:05 +02:00
Lonami Exo
f6f7345a3a
Rename send_read_acknowledge as mark_read
2019-06-07 20:46:55 +02:00
Lonami Exo
ad37db1cd6
Let lists of buttons make up rows
2019-06-07 20:30:35 +02:00
Lonami Exo
ad7e62baf3
Replace pysocks with python-proxy
2019-06-07 20:25:32 +02:00
Lonami Exo
9752f66eab
Minor updates to the documentation and errors
2019-06-07 15:48:34 +02:00
Lonami Exo
770c2c504d
Add new methods to encode and decode waveforms
2019-06-04 21:36:38 +02:00
Lonami Exo
065719c8d8
conversation.cancel() now raises cancelled on future calls ( #1183 )
2019-06-03 19:44:43 +02:00
Lonami Exo
4c3e467d25
Add a method to cancel_all conversations ( #1183 )
2019-06-03 19:41:22 +02:00
Lonami Exo
690a40be77
Better behaviour for conversation.cancel() ( #1183 )
2019-06-03 19:29:08 +02:00
Lonami
9d6150da37
Fix downloading contacts to path ( #1197 )
2019-06-03 15:44:43 +02:00
Lonami Exo
e47f3ec1d6
Clarify some aspects of the documentation
2019-06-01 16:28:20 +02:00
Manuel1510
27360242b0
Add new known errors ( #1196 )
2019-06-01 15:49:12 +02:00
Lonami Exo
30a0e39060
Update to v1.8.0
2019-05-30 21:31:07 +02:00
Lonami Exo
5832ab2f31
Create new client.pin_message method
2019-05-30 17:15:50 +02:00
Lonami Exo
9ea686ab14
Create new client.iter_profile_photos method
2019-05-30 16:51:19 +02:00
Lonami Exo
0d64fd98f7
Create new client.delete_dialog method
2019-05-30 13:58:05 +02:00
Lonami Exo
e4158acd08
Update to layer 100
2019-05-30 13:23:47 +02:00
Lonami Exo
9f72bd8ca3
Fix manual raising of RPC errors
2019-05-27 18:18:38 +02:00
Lonami Exo
1354bf68a8
Factor out clearing items from pending in conversations
...
This should prevent bugs and ease reasoning, since
now everything is removed from a single place.
2019-05-27 14:23:42 +02:00
Lonami Exo
0b41454b01
Fix conversation setting result on cancelled futures
...
On timeout, they are cancelled. On a new message
arriving, we pop and set the result unconditionally.
conv.send_message('Talk to me please')
conv.get_response()
try: conv.get_response(timeout=0.1)
except asyncio.TimeoutError: pass
conv.send_message('One more time...')
conv.get_response() # errors unless above is commented
2019-05-27 14:10:38 +02:00
Lonami Exo
e5485f3d54
Document raw methods with friendly variants
2019-05-26 21:15:43 +02:00
Lonami Exo
4ebf825c43
Clarify documentation on connection and receiving updates
2019-05-23 12:11:58 +02:00
Lonami Exo
6e5f90730e
Fix reversed(client.iter_messages(offset_date=...))
2019-05-22 12:20:02 +02:00
Lonami Exo
80f19bd1f0
Point to the new domains
2019-05-22 11:29:46 +02:00