Andrebcd4
40aa46e72a
Sleep automatically on slow mode error too ( #1279 )
2019-09-24 11:37:41 +02:00
Lonami Exo
de46745926
Fix "methods returning this type" not accounting for vectors
2019-07-15 14:58:27 +02:00
Lonami Exo
e4158acd08
Update to layer 100
2019-05-30 13:23:47 +02:00
Lonami Exo
e5485f3d54
Document raw methods with friendly variants
2019-05-26 21:15:43 +02:00
Lonami Exo
5ed7bf7815
Fix timeout error not being excepted on Button.click
2019-05-05 19:57:09 +02:00
Lonami Exo
63ef7284f7
Use classes when type hinting primitives
2019-05-02 19:12:11 +02:00
Lonami Exo
fce5cfea0e
Update code generator to emit type hints on init methods
2019-05-02 10:19:15 +02:00
Lonami Exo
013525797a
Fix date_* attributes not being of type datetime
2019-04-22 17:07:08 +02:00
Lonami Exo
a5f5d6ef23
Minor doc updates, fixes and improvements
...
In particular, removed code which no longer worked, made light
theme easier on the eyes, added slight syntax highlightning,
and fixed search for exact matches.
2019-03-16 17:19:19 +01:00
Lonami Exo
ae8f1fed05
Treat arguments with _until or _since in their name as dates
2019-03-06 08:38:21 +01:00
Lonami Exo
86a8928278
Better error diagnostics and fix parsing errors.csv
2019-01-24 11:02:58 +01:00
Lonami Exo
b57e3e3e0a
Fix some open calls were not being made through pathlib
...
This was causing the documentation to fail to build under Python 3.5.
2019-01-06 21:36:32 +01:00
Lonami Exo
100cd807f6
Better GetAdminLogRequest example
2018-12-25 14:17:19 +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
e852dccebf
Prevent common pitfall when pulling new .tl files
2018-12-20 20:52:19 +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
932d3bd033
Improve autogenerated examples with more cases and synonyms
2018-12-15 11:47:52 +01:00
Lonami
52b179dba8
Never check channel constructor when generating objects
2018-12-14 17:31:15 +01:00
Lonami Exo
50b77d881d
Clarify who can use methods in the documentation
2018-12-03 16:17:37 +01:00
Lonami Exo
e4cfd964d5
Use an enum for methods' usability
2018-12-03 15:56:38 +01:00
Lonami Exo
01848de7e2
Move error capture names to errors.csv
2018-12-03 11:08:20 +01:00
Lonami Exo
f05109f186
Update code generator to parse CSV files
2018-11-30 21:39:13 +01:00
Lonami Exo
477fbd8dc7
Generate simple examples for the docs
2018-10-16 09:29:48 +02:00
Lonami Exo
8f04ec820f
Don't add functions as possible argument types
2018-10-15 21:12:10 +02:00
Lonami Exo
bb180a1db8
Split generator/tlobject into separate files
2018-10-15 19:29:32 +02:00
Lonami Exo
e3c4bd46fb
Reference argument types to objects when parsing .tl
2018-10-15 19:23:09 +02:00
Lonami Exo
baedd10110
Update to layer 82
2018-06-29 13:23:56 +02:00
Lonami Exo
dd0eb7a90e
Explicitly open files as 'r' instead of leaving it out
2018-06-29 11:34:57 +02:00
Lonami Exo
e604960a1d
Include TAKEOUT_INIT_DELAY_X in the available errors
2018-06-27 09:46:14 +02:00
Lonami Exo
58031b3adf
Update to layer 81
2018-06-24 11:37:54 +02:00
Lonami Exo
f3f0c28505
Support converting .tl -> .json
2018-06-13 10:48:35 +02:00
Lonami Exo
4bdc28a775
Show invalid bot methods in the docs
2018-06-06 17:35:06 +02:00
Lonami Exo
e93b8f2b13
Update to layer 80 and accept TOS on sign_up ( #824 )
2018-06-03 13:26:51 +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
c18971da54
Add a new section in the docs listing known RPC errors
2018-04-15 11:18:26 +02:00
Lonami Exo
3b7c4fe278
Further TLObject generator clean-up
...
Split everything into several functions, reused some more
common code (like accessing the "real" arguments instead
constantly filtering) and more, like using classmethods
instead staticmethods and then hardcoding the class name.
2018-04-14 20:28:25 +02:00
Lonami Exo
748f2db23d
Fix wrong camel case for all names
2018-04-14 19:04:07 +02:00
Lonami Exo
200d3c0360
Clean-up unused methods and reuse more common utils
2018-04-14 17:22:39 +02:00
Lonami Exo
ab15f3699f
Clean-up the TLObject class/parser from redundant comments
2018-04-14 16:05:09 +02:00
Lonami Exo
fc1bc05ca1
Move tlobject and source_builder into their correct folders
2018-04-14 15:16:13 +02:00
Lonami Exo
463fcedf27
Split error_generator code into parsers/generators packages
2018-04-14 13:56:39 +02:00