Bernhard M. Wiedemann
6ded164b85
Sort tlobjects before generating their listing ( #4163 )
2023-08-01 20:23:24 +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
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
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
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
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
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
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
56b09c0c9d
Properly set future results
2018-06-07 10:30:20 +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
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
Lonami Exo
3ed81481f8
Enhance setup.py gen command
2018-04-15 13:19:25 +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
0af4699994
Move tl_generator to generators/ and remove the class
2018-04-14 18:17:59 +02:00