Commit Graph

79 Commits

Author SHA1 Message Date
Dingyuan Wang
5ba312555a
Fix generator for pypy (#4198) 2023-09-12 08:28:14 +02:00
Bernhard M. Wiedemann
6ded164b85
Sort tlobjects before generating their listing (#4163) 2023-08-01 20:23:24 +02:00
Lonami Exo
b87a8d0c1f Remove mentions to methods in generated TL ref
Instead, consistently use the term request, to avoid confusion.
2023-03-11 12:26:17 +01:00
Lonami Exo
8b1bfcdf9c Bump to v1.25 2022-08-30 12:57:34 +02:00
Lonami Exo
5feb210442 Add support for flags2 in the TL 2022-05-12 10:20:42 +02:00
Lonami Exo
b06f496a27 Don't treat False field as flag omission
8724949b54 was only half the story.
2021-03-16 08:21:04 +01:00
Lonami Exo
a1f91d6eb8 (De)serialize user_id as u32
https://t.me/BotNews/57.
2021-03-09 20:10:31 +01:00
Lonami Exo
8724949b54 Don't omit False flag values from serialization 2021-03-07 16:05:09 +01:00
Lonami Exo
cd51c9e47c Get rid of the patched/ module
This may fix #1669.
2021-01-14 22:56:55 +01:00
Lonami Exo
0a4d54fca4 Update to layer 122
Closes #1645.
2020-12-11 16:55:49 +01:00
Lonami Exo
e451abbf20 Avoid another MemoryError 2020-02-28 10:42:23 +01:00
Tulir Asokan
c6bd620555
Make RPCError subclasses unpicklable again (#1387) 2020-02-14 18:22:17 +01:00
Lonami Exo
2ffd1e8e7c Clean-up usage of root directory in docs generation
Instead, make use of the current working directory.
This should ease most of it and remove noise, since
now root is just the current directory.
2019-07-17 10:11:52 +02:00
Lonami Exo
de46745926 Fix "methods returning this type" not accounting for vectors 2019-07-15 14:58:27 +02:00
Lonami Exo
e5485f3d54 Document raw methods with friendly variants 2019-05-26 21:15:43 +02:00
Lonami Exo
84c197be60 Better clean command in setup.py 2019-05-04 17:51:14 +02:00
Lonami Exo
1e17ef1c98 Apply several lints 2019-05-03 21:38:41 +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
08f8aa3c52 Be deterministic when generating TLObjects 2019-04-24 09:40:39 +02:00
Lonami Exo
21a8a50ab9 Remove unwanted autocast in messages.discardEncryption 2019-04-05 10:31:43 +04: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
c11d71c3cd Fix docs generation on Windows and search bar 2019-01-26 13:15:27 +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
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
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
50b77d881d Clarify who can use methods in the documentation 2018-12-03 16:17:37 +01:00
Lonami Exo
01848de7e2 Move error capture names to errors.csv 2018-12-03 11:08:20 +01:00
Lonami Exo
8eca29be25 Make use of the new method info when generating docs 2018-11-30 21:48:15 +01:00
Lonami Exo
f05109f186 Update code generator to parse CSV files 2018-11-30 21:39:13 +01:00
Ivan Tung
c248a102dc Fix-up 99129da error generation if error.has_captures (#1025) 2018-10-21 15:22:46 +02:00
Lonami Exo
477fbd8dc7 Generate simple examples for the docs 2018-10-16 09:29:48 +02:00
Lonami Exo
99129daeee Show the request that caused RPC errors in their messages 2018-10-15 18:35:51 +02:00
Lonami Exo
0fcc2e5e52 Add autocast for InputDocument and InputChatPhoto 2018-10-05 14:11:47 +02:00
Lonami Exo
cb6f980277 Better autocast to InputPeerDialog and documentation 2018-09-22 10:56:37 +02:00
Lonami Exo
497c2144f2 Fix patched objects missing CONSTRUCTOR_ID/SUBCLASS_OF_ID 2018-09-17 16:02:45 +02:00
Lonami Exo
6b57dba5e1 Fix-up f25541e (.to_dict() on patched objects) 2018-08-09 11:16:36 +02:00
Lonami Exo
f25541ea6f Make .to_dict() work on invalid TLObjects
This will improve logging from the previous commit as well.
2018-08-08 12:12:00 +02:00
Lonami Exo
200a4e47b8 Clarify some strings 2018-07-25 02:21:44 +02:00
Lonami Exo
61a9f1e61c Create a third module to store patched objects 2018-07-22 19:12:09 +02:00
Lonami
8ca2e56aee
Fix ID autocast should not add the mark 2018-07-07 19:42:47 +02:00
Lonami Exo
61f9dc1cd7 Fix-up missing parenthesis from 066004a 2018-07-07 13:03:46 +02:00
Lonami Exo
066004acd1 Support chat_id autocast 2018-07-07 12:53:46 +02:00
Lonami Exo
5d4b8a283d Don't generate def resolve() for types
This would require nested resolving which could be quite
expensive. Instead there will just be a single level for
resolve() and it will belong in the requests.
2018-07-07 12:17:29 +02:00
Lonami Exo
bd878acbde Support InputNotifyPeer autocast 2018-07-07 12:14:03 +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
9c0a22ddd7 Fix Python 3.5 compatibility 2018-06-20 20:18:16 +02:00
Lonami Exo
4e9a84c3b5 Remove underscore from module names 2018-06-18 21:02:42 +02:00
Lonami Exo
fbf3bf119c Separate errors needing regex from those which don't 2018-06-18 19:09:45 +02:00