Commit Graph

420 Commits

Author SHA1 Message Date
Lonami Exo
ca80b05694 Add shebangs and set proper file permissions 2017-05-20 15:58:44 +02:00
Lonami Exo
befc7a5657 Fix layer 66 not being the real layer 66
Telegram decided to update the scheme.tl without increasing
the layer number, so it had been unnoticed until now.
2017-05-20 11:59:41 +02:00
Lonami Exo
c4447bf226 Distinguish between vector type and constructor (fix #81) 2017-05-19 09:41:22 +02:00
Lonami Exo
b84641023a Handle more cases where the type is a date 2017-05-19 09:30:30 +02:00
Birger Jarl
930dc99f31 Serialize flag_indicator argument to flags:# 2017-05-13 09:38:49 +02:00
Dmitry D. Chernov
6baad93938 SourceBuilder: Don't perform stream flushing twice
stream.close() always perform flush by itself
2017-05-09 19:50:46 +02:00
Lonami Exo
4421c3ac7a Update to layer 66 2017-04-15 18:10:27 +02:00
Belegnar
0e44657963 * doc improvement
* relative imports not allowed when module is not loaded (https://www.python.org/dev/peps/pep-0366/)
2017-03-10 14:13:22 +03:00
Lonami Exo
b5dfc5d514 Fix requests returning vectors not working (closes #26) 2017-02-25 11:28:55 +01:00
Lonami Exo
a5bd740b10 Updated to layer 62 2017-01-04 15:40:53 +01:00
Fadi Hadzh
d087941bd0 Many code-style improvements 2016-11-30 00:29:42 +03:00
Lonami Exo
be94bff576 Patched code generator and updated README.rst removing markdown leftovers 2016-11-23 21:03:58 +01:00
Lonami
6a32c6cd7a Moved requests .constructor_id to be a class-level variable 2016-10-04 18:55:02 +02:00
Lonami
f2728f47c3 Updated scheme to layer 57 and fixes to README links 2016-10-03 19:57:21 +02:00
Lonami
77aa37d2ad Added an .empty() function to the objects, fixes to msgs_ack
The .empty() function returns an "empty" instance of the object
(attributes set to None). This is used rather than using reflection.

The msgs_ack handling broke stuff (InvokeWithLayer when there were
updates), so this is now handled; yet there may be a better fix
2016-09-26 17:18:25 +02:00
Lonami
36b8a9026f Fixed revert by hand (I hope) 2016-09-26 13:13:11 +02:00
Lonami
b68772aab5 Fixed JSON encoding and decoding for lists, added empty() method
The new empty() method retrieves an empty instance of the
given object, with all the attributes set to None
2016-09-25 10:50:48 +02:00
Lonami
fddb3e9aac Added ability to encode/decode TLObjects, updated README 2016-09-24 21:17:41 +02:00
Lonami
6642f73a3d Detect current MTProtoLayer automatically 2016-09-17 21:09:20 +02:00
Lonami
51a531225f Totally refactored source files location
Now it *should* be easier to turn Telethon
into a pip package
2016-09-17 20:45:12 +02:00