Commit Graph

1398 Commits

Author SHA1 Message Date
Andrey Egorov
85103bcf6d Merge branch 'asyncio' of https://github.com/LonamiWebs/Telethon into asyncio-upstream
* 'asyncio' of https://github.com/LonamiWebs/Telethon:
  Duplicate commit from master to handle empty draft msg
2018-06-14 15:34:21 +03:00
Andrey Egorov
43a0226b33 Merge branch 'asyncio' into asyncio-upstream
* asyncio:
  Not need to save (salt is out of DB)
  Very rare exception in the case of reconnect
  updates_handler is out from MtProtoSender to gc works properly; unauth_handler log format fix
  Memory leaks fix
  Pretty format of TLObject's
  More accurate clear pendings
  Another attempt to prevent duplicates
  Handle updates and other refactoring
  SocketClosed exception
  Refactoring of TcpClient
  Socket OSError logging
  More aggressive catching network errors
  No route to host catched + other errno to reconnect

# Conflicts (resolved):
#	telethon/extensions/tcp_client.py
#	telethon/network/mtproto_sender.py
#	telethon/telegram_bare_client.py
#	telethon/tl/session.py
2018-06-14 15:21:50 +03:00
Lonami Exo
097acd874b Duplicate commit from master to handle empty draft msg
Telegram seems to have changed something in their servers
and now this is sent.
2018-06-13 20:57:41 +02:00
Andrey Egorov
f5a7a8da45 Not need to save (salt is out of DB) 2018-06-08 01:33:11 +03:00
Lonami Exo
cb75092ba1 Merge branch 'master' into asyncio 2018-05-30 19:02:55 +02:00
Lonami Exo
ae87d452c8 Clean-up docs and merge some imports 2018-05-30 18:55:01 +02:00
Lonami Exo
85089353f2 Fix asyncio docs 2018-05-30 18:36:37 +02:00
Lonami Exo
780c66c619 Allow getting messages by their ID 2018-05-28 19:33:23 +02:00
Lonami Exo
6c20f8a2c7 Set is private/group=True for messages deleted out of channels 2018-05-28 18:27:44 +02:00
Lonami Exo
a1b22e0911 Support incoming=False to indicate outgoing=True 2018-05-28 18:25:01 +02:00
ferferga
2c9d3d2fed Better handling of video notes (#803) 2018-05-24 12:28:10 +02:00
Lonami Exo
6726eab045 Clean-up DocsWriter 2018-05-24 11:48:15 +02:00
trgwii
c4c41645e7 Improved modular JS for the docs (#813) 2018-05-24 11:22:52 +02:00
Lonami Exo
e5ff534e2e Update examples 2018-05-24 10:58:42 +02:00
Lonami Exo
03f0044ef8 Change default iter/get messages limit
And fix-up previous commit.
2018-05-24 10:40:44 +02:00
Lonami Exo
a076688fdc Avoid sending min_id/max_id params in iter_messages 2018-05-24 10:19:48 +02:00
Lonami Exo
1aa3fbb295 Add easter egg theme for the docs 2018-05-23 19:49:43 +02:00
Lonami Exo
8e2b28cf27 Fix docs generating top level empty folders 2018-05-23 18:50:40 +02:00
Lonami Exo
c3e5d390eb Add optional dark theme for the docs 2018-05-23 18:50:28 +02:00
Lonami Exo
bb0d29bdd5 Fix unboxed serialization including constructor ID
This only affected FutureSalts, but it's useful that it behaves
the way it should. cc @JuanPotato for spotting the bug.
2018-05-22 19:21:01 +02:00
Lonami Exo
fac6b2348b Fix pts may be 0 with no workers set (#808) 2018-05-22 10:39:40 +02:00
Lonami Exo
b667bb0c1a Fix some chat IDs start with 1000 2018-05-20 12:31:57 +02:00
Lonami Exo
aba478789c Merge branch 'master' into asyncio 2018-05-19 14:44:50 +02:00
Lonami Exo
129f5bf1f8 Add an additional check to avoid duplicate iter_messages 2018-05-17 12:08:52 +02:00
Lonami Exo
cffef411b2 Enhance documentation 2018-05-17 12:00:22 +02:00
Lonami Exo
a8be4bb615 Fix catch_up may use None state 2018-05-17 10:42:20 +02:00
Lonami Exo
89182ea010 Fix iter_messages + from_user not working without filter 2018-05-17 10:17:22 +02:00
Lonami Exo
aa80f92807 Merge branch 'master' into asyncio 2018-05-14 17:42:24 +02:00
Lonami Exo
208adc93a6 Stop using without rowid altogether
While something nice to have if supported, it just causes problems
for people trying to use the same session accross systems having
different sqlite versions. See https://t.me/TelethonChat/36771.
2018-05-14 17:41:47 +02:00
Lonami Exo
02fcaaa78c Merge branch 'master' into asyncio 2018-05-13 17:15:53 +02:00
Lonami Exo
c010683685 Fix using *args on phone migrate 2018-05-13 17:15:25 +02:00
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