Commit Graph

396 Commits

Author SHA1 Message Date
Lonami Exo
6d293b440c Update code using get_input_entity 2022-03-02 13:00:41 +01:00
Devesh Pal
26109d5916
Update to layer 139 (#3750) 2022-03-02 12:58:17 +01:00
Devesh Pal
a00f74285c
Document more RpcErrors (#3716) 2022-02-10 21:28:52 +01:00
Lonami Exo
84b016cf1c Make more TLObject methods private
Even though raw API is somewhat necessary at times,
these methods should remain implementation details.
2022-02-08 10:02:59 +01:00
Shrimadhav U K
cb628f3cce
Update to layer 138 (again) (#3699) 2022-02-05 14:54:54 +01:00
Devesh Pal
acc512683c
Update to layer 138 (#3698) 2022-02-04 14:22:51 +01:00
Lonami Exo
f2ef0bfceb Make upload_file private 2022-01-28 21:06:43 +01:00
Lonami Exo
070af28e85 Make raw API types immutable 2022-01-28 21:06:43 +01:00
Lonami Exo
0eadca670f Document more RPC errors
Closes #3163.
2022-01-24 14:33:30 +01:00
penn5
d9e2a8a5ca
Avoid usage of __builtins__ in the generator (#3161) 2022-01-24 14:25:58 +01:00
Lonami Exo
ed70991bf3 Merge branch 'v2'
v2 is still not complete. A lot of cleanup still needs to be done.
In particular, entities still need some care. However, most of it
is there, and keeping up with two branches is annoying.
This also lets me close a lot of issues to reduce noise
and focus on the important ones.

Closes #354 (input entities have been reworked).
Closes #902 (sessions were overhauled).
Closes #1125, #3253, #1589, #1634, #3150, #3668 (updates are reworked, gaps are properly handled now).
Closes #1169 (2.0 is now merged).
Closes #1311 (proper usage should not trigger this issue on the reworked connection code).
Closes #1327 (there have been some stringify changes).
Closes #1330 (gaps are now detected).
Closes #1366 (sessions are now async).
Closes #1476, #1484 (asyncio open connection is no longer used).
Closes #1529 (commonmark is now used).
Closes #1721 (update gaps are now properly handled).
Closes #1724 (a gap that fixes this will eventually trigger).
Closes #3006 (force_sms is gone).
Closes #3041 (a clean implementation to get difference now exists).
Closes #3049 (commonmark is now used).
Closes #3111 (to_dict has changed).
Closes #3117 (SMS is no longer an option).
Closes #3171 (connectivity bug is unlikely to be a bug in the library).
Closes #3206 (Telethon cannot really fix broken SSL).
Closes #3214, #3257, #3661 (not enough information).
Closes #3215 (this had already been fixed).
Closes #3230, #3674 (entities were reworked).
Closes #3234, #3238, #3245, #3258, #3264 (the layer has been updated).
Closes #3242 (bot-API file IDs have been removed).
Closes #3244 (the error is now documented).
Closes #3249 (errors have been reworked).
2022-01-24 13:24:35 +01:00
Shrimadhav U K
530284a68b
Slight rewording of error message (#3256) 2022-01-24 13:15:49 +01:00
Lonami Exo
8c9ee3f731 Document new known errors 2022-01-16 12:01:18 +01:00
Lonami Exo
3ad6d86cf5 Update to layer 137 2022-01-16 11:48:30 +01:00
Lonami Exo
2db0725b98 Fix generating error names in TL ref 2022-01-09 14:41:04 +01:00
Shrimadhav U K
9c796e8d73
Fix typo, add errors, and update to 133 again (#3157) 2021-12-01 19:00:29 +01:00
Lonami Exo
e3b1dc2059 Make to_dict dynamic 2021-09-26 18:30:08 +02:00
Lonami Exo
86c47a2771 Use __slots__ in all generated classes 2021-09-26 17:52:16 +02:00
Lonami Exo
debde6e856 Completely overhaul errors to be generated dynamically 2021-09-24 20:12:00 +02:00
Lonami Exo
431a9309e3 Remove mark from peer_id 2021-09-18 16:29:45 +02:00
Lonami Exo
eb659b9a58 Fix _write_all_tlobjects call 2021-09-13 20:43:44 +02:00
Lonami Exo
499fc9f603 Move alltlobjects.py and fix imports 2021-09-12 16:58:06 +02:00
Lonami Exo
5fd2a017b2 Fix imports 2021-09-12 16:23:55 +02:00
Lonami Exo
f222dc167e Fix imports 2021-09-12 13:27:13 +02:00
Lonami Exo
28956496fc Adapt generator to new subpackage path 2021-09-12 12:35:48 +02:00
Lonami Exo
d48649602b Replace most raw API usage with new location 2021-09-12 12:16:02 +02:00
Lonami Exo
2a933ac3bd Remove sync hack 2021-09-11 14:06:36 +02:00
Lonami Exo
3f5f5dbe48 Update documentation and list of known errors
Closes #3151.
2021-09-11 11:02:10 +02:00
Shrimadhav U K
28d3d4b122
Update to layer 133 (#3155) 2021-09-11 10:54:11 +02:00
Shrimadhav U K
2182e7f6f1
Update to layer 132 (#3142) 2021-08-31 15:22:56 +02:00
Shrimadhav U K
0a4b827d8e
Document new known RPC errors (#3137) 2021-08-28 00:18:37 +02:00
Shrimadhav U K
6a1f29d953
Add new known RPC errors (#3134) 2021-08-20 11:49:12 +02:00
Devesh Pal
79866750d2
Add new known RPCErrors (#3114) 2021-07-20 23:04:09 +02:00
Shrimadhav U K
3570953d14
Update to layer 131 (#3112) 2021-07-16 21:01:08 +02:00
Lonami Exo
1e09e133e3 Document new known RPC errors
Courtesy of #3097.
2021-07-09 20:11:21 +02:00
Shrimadhav U K
ecfc6ae87d
Add pm_oneside parameter in pin_message (#3095) 2021-07-09 19:50:47 +02:00
Shrimadhav U K
7763939e7d
Update to layer 130 (#3098) 2021-07-09 19:47:13 +02:00
Devesh Pal
42bfc7bb3f
Fix inline force_document and new known RPC errors (#3084)
This should fix inline video notes.
2021-06-24 14:19:01 +02:00
Lonami Exo
2052b502c8 Update to v1.22 2021-06-19 19:08:02 +02:00
Anonymous
7c5efee1de
Update to layer 129 and other additions/enhancements (#3074)
* Apply code corrections for the new layer types.
* Support not passing `user` to `get_permissions`.
* `download_profile_photo` now supports `MessageService`.
* `thumb` in send and edit message.
* Document new known errors.
2021-06-15 22:57:32 +02:00
Lonami Exo
63f24d2282 Add new known RPC errors and update docs 2021-05-30 18:00:27 +02:00
Anonymous
85381713b2
Document new known RPC errors (#3057) 2021-05-15 10:49:55 +02:00
Alisa Sireneva
b2c26a53ef
Document new known RPC errors (#3044) 2021-05-05 20:38:43 +02:00
Lonami Exo
319b6283a9 Update install/test server docs and add new known RPC error 2021-04-21 19:56:57 +02:00
Lonami Exo
5b91adf62d Update documentation
Closes #1733.
2021-03-31 10:54:18 +02:00
Lonami Exo
2fbf850841 Update to layer 126
May help with #3010
2021-03-31 10:52:35 +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
3d6a2bb945 Update to version 1.21 2021-03-14 11:31:03 +01:00
Lonami Exo
8f46f704b1 Update to layer 125
Closes #1728, should close #1724.
2021-03-14 10:58:33 +01:00
Lonami Exo
a1f91d6eb8 (De)serialize user_id as u32
https://t.me/BotNews/57.
2021-03-09 20:10:31 +01:00