mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 18:59:33 +00:00
Implemented read code on TLObjects Generator
The code generated by the generator now also writes the files on_response(...) method. Also, all the generated files are saved in a dictionary containing `constructorId: class`
This commit is contained in:
@@ -94,7 +94,10 @@ class TLArg:
|
||||
:param generic_definition: Is the argument a generic definition?
|
||||
(i.e. {X:Type})
|
||||
"""
|
||||
self.name = name
|
||||
if name == 'self': # This very only name is restricted
|
||||
self.name = 'is_self'
|
||||
else:
|
||||
self.name = name
|
||||
|
||||
# Default values
|
||||
self.is_vector = False
|
||||
|
Reference in New Issue
Block a user