Commit Graph

1329 Commits

Author SHA1 Message Date
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
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
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
Lonami Exo
3008ada98d Distinguish between mtproto/telegram TL like tdlib does 2018-04-28 10:19:55 +02:00
Lonami Exo
dc273ab6bc Add utils.get_input_location 2018-04-27 21:11:13 +02:00
Lonami Exo
f16289cf93 Support download_file with None path to return bytes 2018-04-27 21:11:13 +02:00
Lonami Exo
b71511cd63 Fix saving update state in the SqliteSession 2018-04-27 21:11:13 +02:00
Lonami
9ef40102eb
Be more strict in the ISSUE_TEMPLATE 2018-04-26 19:00:45 +02:00
Lonami Exo
2a00bcaa12 Persist updates.State upon disconnection 2018-04-25 13:37:29 +02:00
Lonami Exo
e2a0de1913 Don't retry forever on TcpClient.connect() 2018-04-25 10:06:11 +02:00
Lonami Exo
5d9cf513bd Update usage of deprecated methods in the docs 2018-04-25 09:55:34 +02:00
Lonami Exo
387a255221 Faster iter_messages by sleeping only as much as needed 2018-04-25 09:51:50 +02:00
Lonami Exo
9e7cbb0b09 Merge branch 'master' into asyncio 2018-04-24 09:48:29 +02:00
Lonami Exo
ea404c5477 Add update_state table to persist pts and such 2018-04-23 21:16:09 +02:00
Lonami Exo
e616af8a70 Fix isfile should be isdir when pip installing locally 2018-04-23 20:52:27 +02:00
Lonami Exo
04a68f12cc Merge branch 'master' into asyncio 2018-04-23 15:53:28 +02:00
Lonami Exo
ab91bc2829 Add missing InputPhoto/Document -> InputMedia autocast 2018-04-23 15:33:44 +02:00
Lonami Exo
4735392cf9 Add missing await keywords 2018-04-23 13:54:06 +02:00
Lonami Exo
f31ca142a3 Support autocast to InputMessage 2018-04-23 11:05:38 +02:00
Terrance
096b2a6f7a Cancel background tasks on disconnect (#783)
Fixes #782.
2018-04-23 09:49:30 +02:00
Lonami Exo
6ecef42ec7 Add search/filter/from_user parameters to iter_messages 2018-04-22 16:30:14 +02:00
Lonami Exo
544651caa7 Retry on RpcCallFailError 2018-04-22 16:30:00 +02:00
Lonami Exo
5dc43276bb Add missing caption when sending Message with media 2018-04-20 09:44:33 +02:00
Lonami Exo
1c2e9d2f27 Fix reply_to didn't override Message's reply on sending them 2018-04-20 09:36:34 +02:00
Lonami Exo
b0dda777fe Support omitting the entity on client.edit_message 2018-04-18 10:27:44 +02:00
Yifei Kong
03bebfb600 Fix tiny docstring typo (#771) 2018-04-17 13:01:23 +02:00
Lonami Exo
6893359f9d Fix tiny error in a docstring for #764 2018-04-15 16:21:15 +02:00
Lonami Exo
8260a13824 Fix-up merge missing async keyword 2018-04-15 16:12:08 +02:00
Lonami Exo
b7ae612246 Merge branch 'master' into asyncio 2018-04-15 16:09:25 +02:00