Commit Graph

12 Commits

Author SHA1 Message Date
Lonami Exo
7524b652c8 Unify setting session state 2022-01-15 11:22:33 +01:00
Lonami Exo
3b1660669e Remove self input user and bot cache from client
The session_state cache can be used instead.
This does put get_me with input_peer at a disadvantage, but I expect
this is not used all that often, since 'me' does just fine.
2021-09-19 18:16:12 +02:00
Lonami Exo
cc3d4145d8 Update and persist session state on successful login 2021-09-19 18:15:19 +02:00
Lonami Exo
81b4957d9b Update code to deal with the new sessions 2021-09-19 16:38:11 +02:00
Lonami Exo
4321b97e98 No longer run send_code_request from sign_in 2021-09-18 16:36:11 +02:00
Lonami Exo
af81899bdc Don't automatically start the client via async-with 2021-09-18 13:30:39 +02:00
Lonami Exo
499fc9f603 Move alltlobjects.py and fix imports 2021-09-12 16:58:06 +02:00
Lonami Exo
c84043cf71 Fix calls to private client methods 2021-09-12 14:09:53 +02:00
Lonami Exo
f222dc167e Fix imports 2021-09-12 13:27:13 +02:00
Lonami Exo
d48649602b Replace most raw API usage with new location 2021-09-12 12:16:02 +02:00
Lonami Exo
2a933ac3bd Remove sync hack 2021-09-11 14:06:36 +02:00
Lonami Exo
d6326abacb Rename client module as _client 2021-09-11 13:35:35 +02:00