Commit Graph

155 Commits

Author SHA1 Message Date
Lonami Exo
3f16c92eb3 Subclass TLRequest for content-related objects 2018-06-12 20:14:21 +02:00
Lonami Exo
3e151a1b7a Make TelegramBareClient able to invoke requests 2018-06-09 21:03:48 +02:00
Lonami Exo
f7e8907c6f Create RpcResult class and generalise core special cases
This results in a cleaner MTProtoSender, which now can always
read a TLObject with a guaranteed item, if the message is OK.
2018-06-09 13:13:55 +02:00
Lonami Exo
56b09c0c9d Properly set future results 2018-06-07 10:30:20 +02:00
Lonami Exo
4bdc28a775 Show invalid bot methods in the docs 2018-06-06 17:35:06 +02:00
Lonami Exo
c7d7977951 Fetch invalid bot methods from pwrtelegram 2018-06-06 17:03:49 +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
ae87d452c8 Clean-up docs and merge some imports 2018-05-30 18:55:01 +02:00
Lonami Exo
6726eab045 Clean-up DocsWriter 2018-05-24 11:48:15 +02:00
trgwii
c4c41645e7 Improved modular JS for the docs (#813) 2018-05-24 11:22:52 +02:00
Lonami Exo
1aa3fbb295 Add easter egg theme for the docs 2018-05-23 19:49:43 +02:00
Lonami Exo
8e2b28cf27 Fix docs generating top level empty folders 2018-05-23 18:50:40 +02:00
Lonami Exo
c3e5d390eb Add optional dark theme for the docs 2018-05-23 18:50:28 +02:00
Lonami Exo
bb0d29bdd5 Fix unboxed serialization including constructor ID
This only affected FutureSalts, but it's useful that it behaves
the way it should. cc @JuanPotato for spotting the bug.
2018-05-22 19:21:01 +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
55c09cde97 Fix online documentation showing duplicated errors 2018-05-06 18:16:48 +02:00
Lonami Exo
ee0f95b156 Fix library expects bytes instead strings on mtproto.tl 2018-05-06 13:06:44 +02:00
Lonami Exo
7ba044730d Fix "Other X with this type" missing from the docs 2018-04-28 12:21:55 +02:00
Lonami Exo
08dbc42718 Update to layer 76 2018-04-28 11:49:43 +02:00
Lonami Exo
3008ada98d Distinguish between mtproto/telegram TL like tdlib does 2018-04-28 10:19:55 +02:00
Lonami Exo
f31ca142a3 Support autocast to InputMessage 2018-04-23 11:05:38 +02:00
Lonami Exo
6328e032e4 Fix local URLs on the generated docs 2018-04-15 14:59:07 +02:00
Lonami Exo
3ed81481f8 Enhance setup.py gen command 2018-04-15 13:19:25 +02:00
Lonami Exo
6058b80877 Further clean-up of the documentation generator 2018-04-15 12:15:43 +02:00
Lonami Exo
5b5edff624 Remove special case from documentation's formatter 2018-04-15 11:54:34 +02:00
Lonami Exo
b88a2ef208 Reuse more code to get class names 2018-04-15 11:47:33 +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
d0fb371515 Fix some documentation methods misusing relative paths 2018-04-15 10:59:04 +02:00
Lonami Exo
d924f97b58 Fix relative paths when generating documentation 2018-04-15 10:47:55 +02:00
Lonami Exo
1f8316c0bb Fix import errors for the documentation generator 2018-04-14 21:15:58 +02:00
Lonami Exo
daebf5b7e8 Move docs generator into the telethon_generator package 2018-04-14 20:35:05 +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
70f5af44de Move data to its own subdirectory 2018-04-14 18:20:29 +02:00
Lonami Exo
0af4699994 Move tl_generator to generators/ and remove the class 2018-04-14 18:17:59 +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
Lonami Exo
8b2afa3530 Separate error fetching from generation 2018-04-14 13:21:27 +02:00
Lonami Exo
cb226e7f45 Revisit telethon_generator (closes #724) 2018-04-01 12:46:44 +02:00
Lonami Exo
7bc021bba4 Update to layer 75 (again) 2018-03-30 20:28:07 +02:00
Lonami Exo
500792975e Handle AUTH_KEY_DUPLICATED on connection 2018-03-30 12:18:18 +02:00
Tulir Asokan
935de0afbb Add Python type hints to attributes of TL types (#678) 2018-03-12 10:58:56 +01:00
Lonami Exo
2e31a686e8 Upgrade to layer 75
Captions are now "messages" and also support message entities.
2018-03-02 21:28:33 +01:00
Lonami Exo
39621ceae9 Use req_pq_multi instead req_pq when creating an auth_key 2018-02-19 20:31:47 +01:00
Dmitry D. Chernov
55bcc29ae0 Errors: Fix passing 'self' to the constructors of the superclasses
This is necessary only if the superclass name is specified explicitly instead of super() call.
2018-02-14 17:09:22 +10:00
Lonami Exo
7286f77008 Sort keys and use Mozilla agent on error generator, update file 2018-01-28 14:02:42 +01:00
Lonami Exo
2873dcf1c6 Add '_' key to TLObject's .to_dict() and remove recursive param
Closes #559
2018-01-25 09:44:07 +01:00