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
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
dffbd2d689
Remove lock usage from master merge
2018-05-06 22:15:06 +02:00
Lonami Exo
52042d4a1b
Merge branch 'master' into asyncio
2018-05-02 20:26:05 +02:00
Lonami Exo
b71511cd63
Fix saving update state in the SqliteSession
2018-04-27 21:11:13 +02:00
Lonami Exo
2a00bcaa12
Persist updates.State upon disconnection
2018-04-25 13:37:29 +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
04a68f12cc
Merge branch 'master' into asyncio
2018-04-23 15:53:28 +02:00
Yifei Kong
03bebfb600
Fix tiny docstring typo ( #771 )
2018-04-17 13:01:23 +02:00
Lonami Exo
abcd09e7d0
Merge branch 'master' into asyncio
2018-04-04 13:47:43 +02:00
Tanuj
a1448f3da8
Clearer variable names in get_input_entity ( #738 )
2018-04-03 13:05:01 +02:00
Lonami Exo
8b0580901a
Merge branch 'master' into asyncio
2018-03-24 13:08:51 +01:00
Lonami Exo
898e550335
Except the right type for get_input_peer ( closes #722 )
2018-03-24 12:09:33 +01:00
Lonami Exo
e505fc1711
Rename telethon_aio back to telethon
2018-03-18 10:26:53 +01:00
Lonami Exo
32fd64d655
Remove SQLAlchemy session
2018-03-17 17:38:16 +01:00
Lonami Exo
841aed13da
Fix tuple/ternary operator fail on SQLAlchemy session ( #671 )
2018-03-08 10:16:46 +01:00
Lonami Exo
3a3ae75b46
Fix-up bot API style IDs not working on .get_input_entity
2018-03-08 10:12:43 +01:00
Lonami Exo
ce0dee63b1
Support getting any entity by just their positive ID
2018-03-08 10:05:40 +01:00
Lonami Exo
4f880dcd56
Replace BLOB with LargeBinary in sqlalchemy.py ( closes #670 )
2018-03-06 12:09:37 +01:00
Lonami Exo
cde314fc21
Rename package to telethon_aio and prepare for PyPi
2018-03-04 11:22:52 +01:00
Lonami Exo
0f72aa8f94
Fix set union
2018-03-03 17:08:49 +01:00
Lonami Exo
563d731c95
Merge remote-tracking branch 'tulir/asyncio' into asyncio
2018-03-03 17:03:27 +01:00
Lonami Exo
96a1f580a4
Remove useless if condition on the memory session
2018-03-03 17:01:06 +01:00
Lonami Exo
81f8b7f76e
Add back _entity_values_to_row
2018-03-03 16:48:57 +01:00
Lonami Exo
0e0e7f1c9e
Avoid unnecessary "or 0" in the session classes
2018-03-03 14:59:30 +01:00
Lonami Exo
6060b3430c
Fix sqlite session clone causing integrity error
...
Triggered on migrations, the dc id would be None.
2018-03-03 14:02:48 +01:00
Lonami Exo
a9c83250a1
Small clean-up of the session classes
2018-03-03 12:51:35 +01:00
Lonami Exo
1e420f7f91
Document the new abstract session better
2018-03-03 12:13:42 +01:00
Tulir Asokan
4432a2d14e
Merge branch 'master' into asyncio
2018-03-03 13:02:13 +02:00
Tulir Asokan
290afd85fc
Fix AlchemySession session table updating
2018-03-02 21:58:16 +02:00
Tulir Asokan
47cdcda9e2
Move device info out of Session
2018-03-02 21:05:09 +02:00
Tulir Asokan
5e88b21aa9
Use single quotes
2018-03-02 20:42:51 +02:00
Tulir Asokan
f805914c80
Handle SQLAlchemy import errors
2018-03-02 20:40:03 +02:00
Tulir Asokan
c1a8896faa
Fix SQLAlchemy implementation
2018-03-02 20:14:11 +02:00
Tulir Asokan
dc2229fdba
Move salt and ID to base session and remove unused imports
2018-03-02 18:39:04 +02:00
Tulir Asokan
e1d7cc541f
Add setters for non-persistent values that apps might change
2018-03-02 18:23:18 +02:00
Tulir Asokan
03d4ab3765
Fix create_engine check
2018-03-02 13:25:40 +02:00
Tulir Asokan
07c2fc50ec
Add SQLAlchemy-based session
2018-03-02 13:22:30 +02:00
Tulir Asokan
118d9b10e8
Add more abstraction
2018-03-02 13:20:11 +02:00
Tulir Asokan
d9a73744a4
Remove old sqlite session variables and clone code
2018-03-02 12:36:39 +02:00
Tulir Asokan
df3faaeb7f
Fix abstract Session method ordering
2018-03-02 11:11:59 +02:00
Tulir Asokan
4c64d53e71
Move non-persistent stuff to base Session class
2018-03-02 11:10:11 +02:00
Tulir Asokan
c5e6f7e265
Split Session into three parts and make a module for sessions
2018-03-01 23:40:28 +02:00