This website requires JavaScript.
Explore
Help
Register
Sign In
mir
/
telethon
Watch
2
Star
0
Fork
0
You've already forked telethon
mirror of
https://github.com/LonamiWebs/Telethon
synced
2025-08-25 11:27:22 +00:00
Code
Issues
Releases
Wiki
Activity
telethon
/
main.py
6 lines
100 B
Python
Raw
Normal View
History
Unescape
Escape
Implemented init and write code on TLObjects Generator The code generated by the generator now classifies the output files in their corresponding categories, also writing their __init__(...) with documented arguments, and the on_send(...) method
2016-08-27 11:59:23 +02:00
import
tlobjects_generator
Added a .tl file tokenizer and parser A TLObject class has been added, as well as a method for tokenizen .tl files. A TLObject can be created by simply calling `TLObject.from_tl(tl_line)`, this will tokenize the .tl line and return a new TLObject with all the required properties extracted. Also added another method to load .tl files and yield TLObjects, including a SourceBuilder that can be later used to generate Python code.
2016-08-26 19:12:20 +02:00
Initial release The initial release contains the most basic implementation of TLSharp core. This is also fully untested, since no test can be done until more work is done.
2016-08-26 12:58:53 +02:00
if
__name__
==
'
__main__
'
:
Implemented init and write code on TLObjects Generator The code generated by the generator now classifies the output files in their corresponding categories, also writing their __init__(...) with documented arguments, and the on_send(...) method
2016-08-27 11:59:23 +02:00
tlobjects_generator
.
generate_tlobjecs
(
)
Reference in New Issue
Copy Permalink