Commit Graph

1355 Commits

Author SHA1 Message Date
Lonami Exo
1aaafc9a43 Merge branch 'master' into asyncio 2018-05-13 16:47:35 +02:00
Lonami Exo
98449bb32f Add missing comma in the dependency list 2018-05-13 09:53:05 +02:00
Lonami Exo
32b7e9e27a Whitelist generator's mismatching ID and ya username 2018-05-12 16:12:42 +02:00
Lonami Exo
5440593520 Update to layer 78 2018-05-12 15:51:37 +02:00
Lonami Exo
e3c6676795 Fix short special usernames not being valid (like vote) 2018-05-11 10:09:38 +02:00
Lonami Exo
ee51aa7073 Fix lost requests on disconnect need_confirmation.clear
The pending acks shouldn't be cleared, in case of a reconnection
these would be pretty common. E.g. disconnect(), connect(),
invoke, repeat.
2018-05-10 16:45:55 +02:00
Lonami Exo
eb22bce2d9 Add missing connect abstractmethod 2018-05-10 16:16:23 +02:00
Lonami Exo
3df90307a7 Merge branch 'master' into asyncio 2018-05-10 14:45:04 +02:00
Lonami Exo
ba4b7ce881 Make the Connection a proper ABC (#509) 2018-05-10 14:22:19 +02:00
Lonami Exo
ed8c123b9a Fix yield_ must be awaited 2018-05-10 10:11:30 +02:00
Lonami Exo
6130b8918d Fix invalid merge 2018-05-10 10:07:54 +02:00
Lonami Exo
95eac6c151 Merge branch 'master' into asyncio 2018-05-10 09:55:05 +02:00
Lonami Exo
dd954b8fbd Avoid receive busy wait when two threads receive items 2018-05-10 09:44:25 +02:00
Lonami Exo
ef509d13c7 Move InvokeAfterMsg to TLMessage to cleanly confirm results 2018-05-09 16:18:42 +02:00
Lonami Exo
e2e7e631b5 Stop using *args when invoking many requests at once 2018-05-09 10:19:45 +02:00
Lonami Exo
b09d91b9ef Add missing await 2018-05-09 09:46:58 +02:00
Lonami Exo
e200acbca8 Allow sending ordered MessageContainer 2018-05-09 09:46:07 +02:00
Lonami Exo
3171efafcb Remove the last await in comprehension for Py3.5 2018-05-09 09:08:52 +02:00
Lonami Exo
1b76c1fc7b Attempt at supporting Python 3.5 (cc @tulir)
Thanks in part to
https://github.com/tulir/telethon-asyncio/compare/asyncio...tulir:asyncio-3.5
2018-05-08 20:50:51 +02:00
Lonami Exo
d20dc01afa Add missing await 2018-05-08 20:30:14 +02:00
Lonami Exo
c0fa2ae620 Update to v0.19 2018-05-08 20:28:50 +02:00
Lonami Exo
2cc0e17c7e Add voice/video note parameters to send_file 2018-05-08 20:28:50 +02:00
Lonami Exo
fbea963230 First attempt at updates catch_up for private chats/groups 2018-05-08 20:26:46 +02:00
Lonami Exo
fe299cc6cc Remove broken packet length check 2018-05-08 20:26:46 +02:00
Lonami Exo
97f3dd809b Fix race condition causing broken responses 2018-05-08 20:26:19 +02:00
Lonami Exo
01a594ca5d Fix still broken log for broken packets 2018-05-08 20:24:28 +02:00
Lonami Exo
cd410d7fd7 Call disconnect on ConnectionResetError hoping a reconnection
Maybe self._reconnect() had no effect unless a clean disconnect
was done, and so retrying would be mostly useless. Just a guess.
2018-05-08 20:23:07 +02:00
Lonami Exo
c0b61f3a63 Fix online documentation showing duplicated errors 2018-05-08 20:23:07 +02:00
Lonami Exo
bda7eb0ef1 Update to v0.19 2018-05-07 21:30:12 +02:00
Lonami Exo
392508c78d Add voice/video note parameters to send_file 2018-05-07 19:53:32 +02:00
Lonami Exo
37436bdeee First attempt at updates catch_up for private chats/groups 2018-05-07 18:02:15 +02:00
Lonami Exo
6652fe276c Remove broken packet length check 2018-05-07 17:05:27 +02:00
Lonami Exo
f06b9b68d5 Fix race condition causing broken responses 2018-05-07 17:01:04 +02:00
Lonami Exo
2922e8df11 Fix still broken log for broken packets 2018-05-07 16:46:58 +02:00
Lonami
dffbd2d689
Remove lock usage from master merge 2018-05-06 22:15:06 +02:00
Lonami
2691872503
Add missing time import 2018-05-06 22:12:47 +02:00
Lonami Exo
6cd96389c0 Call disconnect on ConnectionResetError hoping a reconnection
Maybe self._reconnect() had no effect unless a clean disconnect
was done, and so retrying would be mostly useless. Just a guess.
2018-05-06 18:59:53 +02:00
Lonami Exo
55c09cde97 Fix online documentation showing duplicated errors 2018-05-06 18:16:48 +02:00
Lonami Exo
41f0e0c0a8 Merge branch 'master' into asyncio 2018-05-06 13:09:17 +02:00
Lonami Exo
ee0f95b156 Fix library expects bytes instead strings on mtproto.tl 2018-05-06 13:06:44 +02:00
Lonami Exo
f442e01560 Documentation enhancements 2018-05-06 13:03:30 +02:00
Lonami Exo
2045e00563 Stop manually constructing InputFileLocation 2018-05-06 11:46:04 +02:00
Lonami Exo
ee1e4e18f6 Clean-up download_profile_photo and add missing cases 2018-05-06 11:41:42 +02:00
Lonami Exo
ae5a265ca1 Fix unsupported async list comprehension in py3.5 2018-05-02 20:36:11 +02:00
Lonami Exo
52042d4a1b Merge branch 'master' into asyncio 2018-05-02 20:26:05 +02:00
Lonami Exo
d6935355ae Fix two tiny typos 2018-04-28 13:42:36 +02:00
Lonami Exo
ce7e5abb58 Support filtering events.Raw by update type 2018-04-28 13:37:19 +02:00
Lonami Exo
5c6ac18a52 Attach original_update to all events 2018-04-28 12:58:41 +02:00
Lonami Exo
7ba044730d Fix "Other X with this type" missing from the docs 2018-04-28 12:21:55 +02:00
Lonami Exo
08dbc42718 Update to layer 76 2018-04-28 11:49:43 +02:00