Lonami Exo
c51a17bf9a
Actually make AdminLogEvent work
...
Ideally this would have been tested before release one commit ago.
2019-01-03 22:25:50 +01:00
Lonami Exo
77be6a2755
Update to v1.5.1
2019-01-03 19:43:48 +01:00
Lonami Exo
72927a4ec3
Remove full API examples that have a friendly counterpart
2019-01-03 19:23:28 +01:00
Lonami Exo
1b424b3fe7
Update documentation to reflect new methods
2019-01-03 19:20:52 +01:00
Lonami Exo
eda8d0dbc8
Support configuring the reply markup through buttons
2019-01-03 19:03:47 +01:00
Lonami Exo
2631144702
Add more properties to the client to make media more convenient
2019-01-03 18:34:29 +01:00
Lonami Exo
4ccabaf422
Add friendly method to get admin log ( #952 )
2019-01-03 13:09:59 +01:00
Lonami Exo
95cf873bad
Don't mark the user as connected until successfull connection
...
The idea behind distinguishing between the user being connected and
the actual connection having been made was to support retries while
the user decided to connect, even if the connection wasn't made yet.
The problem is that _user_connected is used directly to tell whether
the sender is connected or not which will be wrong if an exception
occurs on the initial connection. Since the logic retry isn't used
there we can simply mark as connected once a successfull connection
is made.
2019-01-02 10:53:10 +01:00
Lonami Exo
229969192a
Fix UnicodeDecodeError with malformed input on unparse text
2019-01-01 20:31:39 +01:00
Lonami Exo
619e4dc2d6
Fix get_peer for int which made ab557a8
useless
2018-12-28 17:54:15 +01:00
Lonami Exo
4ad9c9bf31
Add TLObject.to_json() for convenience
2018-12-27 20:15:35 +01:00
Lonami Exo
f1157b8fd1
Return downloaded bytes when file=bytes
2018-12-27 19:05:52 +01:00
Lonami Exo
342a4dd502
Update to v1.5
2018-12-25 17:55:15 +01:00
Lonami Exo
fc46e1ec20
Workaround file references by using empty byte strings for cache
...
They seem to work for now, so until there is a need to update it,
cache will just rely on empty byte strings for the file_reference.
2018-12-25 17:02:33 +01:00
Lonami Exo
b66c1e6084
Revert "Get rid of now broken cache"
...
This reverts commit f73ae42a03
.
2018-12-25 16:50:11 +01:00
Lonami Exo
100cd807f6
Better GetAdminLogRequest example
2018-12-25 14:17:19 +01:00
Lonami Exo
a6c3c382b4
Except MessageIdsEmptyError when getting messages by ID
...
This error may occur even when the IDs are not actually empty.
2018-12-25 12:17:24 +01:00
Lonami Exo
f73ae42a03
Get rid of now broken cache
2018-12-25 11:44:10 +01:00
Lonami Exo
382106aafb
Check g when password's prime is known to be good
2018-12-25 10:59:16 +01:00
Lonami Exo
18f457a41d
Add missing file_reference to InputDocument
2018-12-25 01:04:45 +01:00
Aaron Gallagher
b0e0bc3701
Extend new_algo.salt1 to fix edit_2fa ( #1072 )
...
The salt1 that is sent to the server requires an additional 32 bytes
of random data. It's easy to miss this requirement from reading the
tdesktop source, because this extension is done in a function called
`ValidateNewCloudPasswordAlgo`.
https://github.com/telegramdesktop/tdesktop/blob/2e5a0e056cdb40d61d487c6062bffe1a835f
6ddd/Telegram/SourceFiles/core/core_cloud_password.cpp#L210-L211
2018-12-24 21:16:09 +01:00
Lonami Exo
deb6ca0da0
Fast-path good known prime in 2fa
2018-12-24 20:17:31 +01:00
Lonami Exo
fb9796a293
Pre-create directory structure when generating docs
...
This reduces the amount of system calls
from thousands to a few dozens at most.
2018-12-24 18:16:18 +01:00
Lonami Exo
ffc0a8808b
Revert docs search to use onkeyup or last keystroke is ignored
2018-12-24 18:04:13 +01:00
Lonami Exo
de74711e82
Implement click for KeyboardButtonGame
2018-12-24 17:56:30 +01:00
Lonami Exo
f16ed8235c
Add new is_bot method to check if the logged-in user is a bot
2018-12-24 17:32:34 +01:00
Lonami Exo
ab557a8cef
Use getUsers/getChannels with hash 0 on get_input_entity
2018-12-24 17:32:16 +01:00
Lonami Exo
46fea3fc93
Implement clearing password in edit_2fa
2018-12-24 16:30:45 +01:00
Lonami Exo
6823b6c691
Remove old code to get the hash of a password
2018-12-24 14:47:39 +01:00
Lonami Exo
d2ac7e5b0a
Actually perform all checks in 2fa
2018-12-24 14:16:50 +01:00
Lonami Exo
a623006ea0
Update 2fa code to layer 91
2018-12-24 14:10:15 +01:00
Lonami Exo
24986bbea0
Update to layer 91
2018-12-23 11:03:14 +01:00
Lonami Exo
aefa429236
Make complete use of pathlib (fix up 8224e5a
)
2018-12-21 18:18:18 +01:00
Lonami Exo
8224e5aabf
Make use of pathlib nearly everywhere (breaks docs gen)
...
Python 3.6 introduced support for the os.PathLike interface,
which means Python 3.5 did not have it yet and attempting to
use it in os functions would fail. Instead we can use pathlib
for everything, but not all work is done yet.
2018-12-21 13:24:16 +01:00
Lonami Exo
b9d4eb5449
Default to dark theme to avoid screen flashing and fix typo
2018-12-21 10:56:40 +01:00
Lonami Exo
e852dccebf
Prevent common pitfall when pulling new .tl files
2018-12-20 20:52:19 +01:00
Lonami Exo
2aa089f29c
Prevent KeyError in forward_messages
2018-12-20 20:33:25 +01:00
Kyle2142
d3feaeedb2
Prevent caption=None from crashing ( #1071 )
2018-12-20 10:50:16 +01:00
Lonami Exo
7100b75598
Update to layer 89
...
This breaks edit_2fa
2018-12-18 16:37:07 +01:00
Lonami Exo
09f994c105
Except TypeError on empty access hash from 5018879
thoroughly
2018-12-18 08:39:36 +01:00
Lonami Exo
6839bfcc2d
Redirect to first term when pressing enter on docs search
2018-12-16 10:40:31 +01:00
Lonami Exo
e71c556ca7
Use pathlib.Path in setup.py
2018-12-15 13:26:18 +01:00
Lonami Exo
da5c171346
Skip core types when parsing .tl files
...
This avoids the need to comment then every time the file changes.
2018-12-15 12:38:56 +01:00
Lonami Exo
5018879f84
Raise TypeError in get_input_peer if access_hash is None
...
When auto-casting to input peers if the access hash is now None,
the ID will be used to look-up a cached access hash which will
solve some common pitfalls (using full entities when only the
input variant should and could be used).
2018-12-15 12:23:14 +01:00
Lonami Exo
7ee7b43547
Be explicit that phone numbers only work if in your contacts
2018-12-15 12:04:36 +01:00
Lonami Exo
932d3bd033
Improve autogenerated examples with more cases and synonyms
2018-12-15 11:47:52 +01:00
Lonami Exo
34879a4b35
Use decodeURI when loading GET parameters
2018-12-15 11:36:54 +01:00
Lonami Exo
027d08cec7
Slightly smarter search generated docs
2018-12-15 11:36:54 +01:00
Lonami
52b179dba8
Never check channel constructor when generating objects
2018-12-14 17:31:15 +01:00
Sister Midnight
f3013c6817
Fix ConnectionHttp SSL socket wrap ( #1064 )
2018-12-10 14:43:48 +01:00