Commit Graph

294 Commits

Author SHA1 Message Date
Lonami Exo
e9c5e719f1 Minor docs update, bump v1.11.3 2020-02-24 13:15:56 +01:00
Lonami Exo
f21abcd529 Update to v1.11 2020-02-20 20:57:17 +01:00
Lonami Exo
7c6fe5c4e9 Update to layer 110 2020-02-16 14:03:16 +01:00
Tulir Asokan
c6bd620555
Make RPCError subclasses unpicklable again (#1387) 2020-02-14 18:22:17 +01:00
Lonami Exo
22e645e22f Update to layer 109 2020-01-23 13:43:20 +01:00
Lonami Exo
dd4c22d02d Document two new known errors 2020-01-22 14:21:09 +01:00
Lonami Exo
582a61192a Fix MemoryError on get_input_media(game)
Because an integer was being passed where a TLObject was expected,
so the serialization with bytes() was actually requesting that many
bytes as opposed to properly converting the expected object.
2020-01-04 17:52:31 +01:00
Lonami Exo
0683d9771a Update to layer 108 2019-12-31 10:43:05 +01:00
Lonami Exo
0af823e86c Add three new errors regarding polls 2019-12-26 22:30:07 +01:00
Lonami Exo
fa736f81af Handle all entity types on isinstance checks
Only the uses of `isinstance` against `InputPeer*` types were
reviewed. Notably, `utils` is exempt on this because it needs
to deal with everything on a case-by-case basis.

Since the addition of `*FromMessage` peers, any manual `isinstance`
checks to determine the type were prone to breaking or being
forgotten to be updated, so a common `helpers._entity_type()`
method was made to share this logic.

Since the conversion to `Peer` would be too expensive, a simpler
check against the name is made, which should be fast and cheap.
2019-12-23 13:52:07 +01:00
Lonami Exo
4499f3b95e Update to layer 106 2019-12-22 11:17:59 +01:00
Lonami Exo
b985dcd248 Fix 3.8 syntax warning and erroneous documentation
Closes #1340 (syntax warning)
Closes #1341 (outdated docs)
2019-12-05 11:14:02 +01:00
Lonami Exo
baacecadc5 Document some errors, bump v1.10.7 2019-10-27 18:50:21 +01:00
Lonami Exo
6206a1a524 Minor documentation update 2019-10-21 11:45:31 +02:00
Andrebcd4
40aa46e72a Sleep automatically on slow mode error too (#1279) 2019-09-24 11:37:41 +02:00
davtur19
b76bed3a40 Update errors' description (#1266) 2019-09-16 19:40:29 +02:00
davtur19
95ba02a9d3 Add new known errors (#1265) 2019-09-10 21:09:43 +02:00
Lonami Exo
9dd73cd494 Update to layer 105 2019-09-06 13:10:27 +02:00
Lonami Exo
00b0319397 Update to layer 104 2019-08-14 00:03:24 +02:00
Lonami Exo
f2a236eb57 Split scheme back into two files 2019-08-13 23:45:17 +02:00
Lonami Exo
b1eed82b7f Fix use of newer file IDs and add two new errors 2019-08-06 23:25:58 +02:00
Lonami Exo
48d6f15850 Update to layer 103 (again) 2019-07-20 12:26:11 +02:00
Lonami Exo
ae620db0c5 Better document MESSAGE_ID_INVALID 2019-07-20 11:15:29 +02:00
Lonami Exo
2ffd1e8e7c Clean-up usage of root directory in docs generation
Instead, make use of the current working directory.
This should ease most of it and remove noise, since
now root is just the current directory.
2019-07-17 10:11:52 +02:00
Lonami Exo
de46745926 Fix "methods returning this type" not accounting for vectors 2019-07-15 14:58:27 +02:00
painor
ae1c1b3912 Improve permission-related errors (#1231) 2019-07-10 23:19:50 +02:00
Lonami Exo
0ced884aa3 Fix wrong friendly methods mappings 2019-07-06 19:45:20 +02:00
Lonami Exo
97e4d83593 Rename and clarify docs for edit_permissions 2019-07-06 19:31:33 +02:00
Lonami Exo
8a0a18255a Update to layer 103 2019-07-05 12:27:20 +02:00
Lonami Exo
61270e0ea6 Document edit_admin and edit_restrictions as friendly methods 2019-07-05 10:51:48 +02:00
Lonami Exo
3c68208c41 Update to layer 102 2019-06-23 21:23:40 +02:00
Lonami Exo
bdedd2dc26 Redirect to exact match on pressing enter 2019-06-15 22:54:25 +02:00
Lonami Exo
9752f66eab Minor updates to the documentation and errors 2019-06-07 15:48:34 +02:00
Manuel1510
27360242b0 Add new known errors (#1196) 2019-06-01 15:49:12 +02:00
Lonami Exo
e4158acd08 Update to layer 100 2019-05-30 13:23:47 +02:00
Lonami Exo
e5485f3d54 Document raw methods with friendly variants 2019-05-26 21:15:43 +02:00
Lonami Exo
80f19bd1f0 Point to the new domains 2019-05-22 11:29:46 +02:00
Lonami Exo
7c1c040d50 Update docstrings to have consistent style 2019-05-20 11:57:11 +02:00
Lonami Exo
a4c2e45d6d Handle more key errors on forward message 2019-05-17 12:30:13 +02:00
Lonami Exo
313caf440e Add friendly methods for archiving dialogs 2019-05-10 18:12:16 +02:00
Lonami Exo
e408550553 Update to layer 99 2019-05-09 21:21:50 +02:00
Lonami Exo
7f88238d8f Update external links to the documentation 2019-05-09 14:09:22 +02:00
Lonami Exo
5ed7bf7815 Fix timeout error not being excepted on Button.click 2019-05-05 19:57:09 +02: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
21aec00e46 Fix downloading photos with download_file (#1164) 2019-04-24 12:37:19 +02:00
Lonami Exo
08f8aa3c52 Be deterministic when generating TLObjects 2019-04-24 09:40:39 +02:00
Lonami Exo
bb23bc0fd2 Finish update to layer 98 2019-04-22 19:05:25 +02:00