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
Lonami Exo
463847ad50
Revisit and remove a few TODOs
2018-06-18 18:46:06 +02:00
Lonami
bb3a564500
Merge pull request #843 from LonamiWebs/core-rewrite
...
Core rewrite
2018-06-14 16:25:28 +02:00
Lonami Exo
3f16c92eb3
Subclass TLRequest for content-related objects
2018-06-12 20:14:21 +02:00
Lonami Exo
0c25bf29b4
Add missing parenthesis
2018-06-11 13:43:08 +02:00
Jeff
cea75a4365
Adds new docs index for methods can be used as bots ( #840 )
2018-06-11 13:36:32 +02:00
Lonami Exo
3e151a1b7a
Make TelegramBareClient able to invoke requests
2018-06-09 21:03:48 +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
6726eab045
Clean-up DocsWriter
2018-05-24 11:48:15 +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
55c09cde97
Fix online documentation showing duplicated errors
2018-05-06 18:16:48 +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
f31ca142a3
Support autocast to InputMessage
2018-04-23 11:05:38 +02:00