x0x8x
78514110de
Update errors.csv ( #1609 )
2020-11-05 10:40:44 +01:00
Lonami Exo
d83c154f8d
Partial update to layer 120
2020-10-30 20:06:59 +01:00
Lonami Exo
f450682a22
Document BOT_DOMAIN_INVALID
2020-10-21 09:32:29 +02:00
Qwerty-Space
d56b27e570
Fix several minor typos ( #1603 )
2020-10-18 21:11:59 +02:00
Lonami Exo
3ff09f7b91
Use inline result mime to infer the result type
2020-10-15 11:04:54 +02:00
Andrew Lane
7de1c0e237
Document two new RPC errors ( #1591 )
2020-10-13 10:50:05 +02:00
Lonami Exo
adf52a1b74
Expose entity parameter in client.inline_query
...
Some bots, such as @gamee, use this to determine the type of results
to return (and "disable" themselves in channels).
2020-10-11 16:59:48 +02:00
Lonami Exo
18f70b3bac
Improve PEER_ID_INVALID description
2020-10-01 21:27:03 +02:00
Lonami Exo
d5e4398ace
Adapt the rest of the library to layer 119
2020-10-01 12:22:55 +02:00
Lonami Exo
62737c1caf
Partially upgrade to layer 119
2020-10-01 09:17:18 +02:00
Daniil
9ec5707c32
Add more info on invalid sticker error ( #1558 )
2020-09-13 16:29:48 +02:00
Daniil
02b8f1d007
Document STICKER_DOCUMENT_INVALID error ( #1537 )
2020-08-29 11:41:50 +02:00
Lonami Exo
daec282cdf
Update to layer 117
2020-08-24 12:56:20 +02:00
Lonami Exo
06f3dc3053
Revert "Update to layer 117"
...
This reverts commit 26ff92caa9
.
Layer changes only go in minor releases, and the commit history is
linear, so temporarily revert to release a new patch version.
2020-08-24 12:53:43 +02:00
Pascal Jürgens
bde38fb748
Improve description for FILE_ID_INVALID ( #1531 )
2020-08-23 19:39:29 +02:00
Lonami Exo
accb2142e7
Document new known RPC error
2020-08-23 11:37:59 +02:00
Lonami Exo
26ff92caa9
Update to layer 117
2020-08-15 12:54:05 +02:00
Lonami Exo
cb6ffeaabd
Slightly improve docs heuristics for video files
2020-07-28 19:46:50 +02:00
Lonami Exo
b1ea7572dd
Document new rpc errors in layer 116
2020-07-26 13:45:19 +02:00
Lonami Exo
57b38b24dd
Update to layer 116
2020-07-26 12:55:29 +02:00
Lonami Exo
ec8bb8a06a
Document PRIVACY_TOO_LONG
2020-07-25 18:42:12 +02:00
Lonami Exo
7b852206f1
Fix click timeout error is now different
2020-07-04 13:29:43 +02:00
Lonami Exo
e0c3143763
Update documentation with new errors and further clarifications
2020-06-22 13:21:45 +02:00
Lonami Exo
fc07e6bba7
Document some RPC errors for channels.editCreator
2020-06-07 09:50:33 +02:00
Lonami Exo
20a6d7b26b
Document several new RPC errors
2020-06-06 13:47:56 +02:00
Lonami Exo
493f69f195
Update to layer 114
2020-06-05 09:29:15 +02:00
Lonami Exo
02d0cbcfab
Document FILE_REFERENCE_EMPTY
2020-05-24 18:41:30 +02:00
Lonami Exo
856538635d
Document FRESH_CHANGE_PHONE_FORBIDDEN
...
Closes #1464 .
2020-05-17 09:28:30 +02:00
Lonami Exo
db16cf5548
Update to layer 113
2020-05-01 14:10:58 +02:00
Lonami Exo
dcc450267f
Document new EMOTICON_INVALID error
2020-04-24 12:38:51 +02:00
Lonami Exo
a353ae3b65
Update to layer 112
2020-04-24 12:17:33 +02:00
Lonami Exo
01cf4967a5
Clarify send_read_acknowledge behaviour and add new error
2020-04-13 15:03:13 +02:00
Lonami Exo
c0e523508b
Update raw API method usability mapping
2020-04-06 17:44:22 +02:00
Lonami Exo
8ea5fae61b
Add some missing layer 111 raw API methods
2020-04-06 10:09:11 +02:00
Lonami Exo
65d8205eef
Update to layer 111
2020-03-28 10:01:31 +01:00
Lonami Exo
1ec38aa5b2
Update and clarify some docs
...
cc #1388 , #1396
2020-02-28 11:50:16 +01:00
Lonami Exo
e451abbf20
Avoid another MemoryError
2020-02-28 10:42:23 +01:00
Lonami Exo
673a2ecd5d
Document two new errors
2020-02-25 15:52:22 +01:00
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
Lonami Exo
013525797a
Fix date_* attributes not being of type datetime
2019-04-22 17:07:08 +02:00
Lonami Exo
8868ce14e8
Update to layer 98
2019-04-22 16:51:05 +02:00
Lonami Exo
68291c7b3d
Add new errors to the list of known ones
2019-04-06 11:46:57 +04:00
Lonami Exo
21a8a50ab9
Remove unwanted autocast in messages.discardEncryption
2019-04-05 10:31:43 +04:00
Lonami
3126533a33
Update to layer 97
2019-03-24 18:14:18 +01:00
Lonami Exo
7c48857d0c
Update docs for send_file/timeouts and add new known error
2019-03-18 17:34:48 +01:00
Lonami Exo
a5f5d6ef23
Minor doc updates, fixes and improvements
...
In particular, removed code which no longer worked, made light
theme easier on the eyes, added slight syntax highlightning,
and fixed search for exact matches.
2019-03-16 17:19:19 +01:00
Lonami Exo
ae8f1fed05
Treat arguments with _until or _since in their name as dates
2019-03-06 08:38:21 +01:00
Lonami Exo
4cc2a17765
Deal with usability in methods that hit flood wait
2019-03-02 19:40:39 +01:00
Lonami Exo
dd1ca16ded
Update docs, usability and errors for all methods
2019-03-02 19:01:20 +01:00
Lonami Exo
05d174d4ce
Update documentation, errors and add TODOs
2019-02-27 19:30:12 +01:00
Lonami Exo
0934f71c02
Update to layer 95
2019-02-21 12:40:47 +01:00
Lonami Exo
628a16f287
Document new errors and limits for inline results
2019-02-14 19:45:25 +01:00
Lonami Exo
5c85f830bd
Further document automatic photo resizing
2019-02-13 09:58:02 +01:00
Lonami Exo
cf867954c3
Support any of /sS to focus docs search
2019-01-26 13:15:27 +01:00
Lonami Exo
c11d71c3cd
Fix docs generation on Windows and search bar
2019-01-26 13:15:27 +01:00
Lonami Exo
86a8928278
Better error diagnostics and fix parsing errors.csv
2019-01-24 11:02:58 +01:00
Lonami Exo
33742c809a
Document BANNED_RIGHTS_INVALID
2019-01-23 14:37:40 +01:00
Lonami Exo
bb5c1f24c6
Update to layer 93
2019-01-21 20:09:13 +01:00
Lonami Exo
8f44364c6c
Add supports_streaming to send_file and update docs/errors
2019-01-21 19:47:17 +01:00
Lonami Exo
b0883148f5
Document more RPC errors
...
These two occur when replying to an inline query with a photo and
InputBotInlineMessageMediaAuto empty message, and passing URLs to
PNGs that may not be accessible (i.e. 403 from pixiv).
2019-01-17 16:51:50 +01:00
Lonami Exo
51f0bf5d84
Fully support email in edit_2fa
2019-01-14 13:57:07 +01:00
Lonami Exo
d892a537a7
Support get_peer on participants and clarify some strings
2019-01-07 16:13:37 +01:00
Lonami Exo
b57e3e3e0a
Fix some open calls were not being made through pathlib
...
This was causing the documentation to fail to build under Python 3.5.
2019-01-06 21:36:32 +01:00
Lonami Exo
a5b107e6c9
Update documentation with takeout, add new known errors
2019-01-05 17:31:26 +01:00
Lonami Exo
1b424b3fe7
Update documentation to reflect new methods
2019-01-03 19:20:52 +01:00
Lonami Exo
342a4dd502
Update to v1.5
2018-12-25 17:55:15 +01:00
Lonami Exo
100cd807f6
Better GetAdminLogRequest example
2018-12-25 14:17:19 +01:00
Lonami Exo
fb9796a293
Pre-create directory structure when generating docs
...
This reduces the amount of system calls
from thousands to a few dozens at most.
2018-12-24 18:16:18 +01:00
Lonami Exo
ffc0a8808b
Revert docs search to use onkeyup or last keystroke is ignored
2018-12-24 18:04:13 +01:00
Lonami Exo
24986bbea0
Update to layer 91
2018-12-23 11:03:14 +01:00
Lonami Exo
aefa429236
Make complete use of pathlib (fix up 8224e5a
)
2018-12-21 18:18:18 +01:00
Lonami Exo
8224e5aabf
Make use of pathlib nearly everywhere (breaks docs gen)
...
Python 3.6 introduced support for the os.PathLike interface,
which means Python 3.5 did not have it yet and attempting to
use it in os functions would fail. Instead we can use pathlib
for everything, but not all work is done yet.
2018-12-21 13:24:16 +01:00
Lonami Exo
b9d4eb5449
Default to dark theme to avoid screen flashing and fix typo
2018-12-21 10:56:40 +01:00
Lonami Exo
e852dccebf
Prevent common pitfall when pulling new .tl files
2018-12-20 20:52:19 +01:00
Lonami Exo
7100b75598
Update to layer 89
...
This breaks edit_2fa
2018-12-18 16:37:07 +01:00
Lonami Exo
6839bfcc2d
Redirect to first term when pressing enter on docs search
2018-12-16 10:40:31 +01:00
Lonami Exo
da5c171346
Skip core types when parsing .tl files
...
This avoids the need to comment then every time the file changes.
2018-12-15 12:38:56 +01:00
Lonami Exo
932d3bd033
Improve autogenerated examples with more cases and synonyms
2018-12-15 11:47:52 +01:00
Lonami Exo
34879a4b35
Use decodeURI when loading GET parameters
2018-12-15 11:36:54 +01:00
Lonami Exo
027d08cec7
Slightly smarter search generated docs
2018-12-15 11:36:54 +01:00
Lonami
52b179dba8
Never check channel constructor when generating objects
2018-12-14 17:31:15 +01:00
Lonami Exo
50b77d881d
Clarify who can use methods in the documentation
2018-12-03 16:17:37 +01:00
Lonami Exo
e4cfd964d5
Use an enum for methods' usability
2018-12-03 15:56:38 +01:00
Lonami Exo
4901447ad6
Remove now unused code to fetch errors from remote host
2018-12-03 15:53:08 +01:00
Lonami Exo
01848de7e2
Move error capture names to errors.csv
2018-12-03 11:08:20 +01:00
Lonami Exo
b8912ea0aa
Add two MEDIA_*_INVALID to known errors
2018-11-30 21:54:00 +01:00
Lonami Exo
8eca29be25
Make use of the new method info when generating docs
2018-11-30 21:48:15 +01:00
Lonami Exo
f05109f186
Update code generator to parse CSV files
2018-11-30 21:39:13 +01:00
Lonami Exo
f646863149
Replace error and method data with CSV files
2018-11-30 21:38:36 +01:00
Lonami Exo
c70943bb0e
Add CHAT_RESTRICTED to known errors
2018-11-03 12:46:19 +01:00
Ivan Tung
c248a102dc
Fix-up 99129da
error generation if error.has_captures ( #1025 )
2018-10-21 15:22:46 +02:00
Lonami Exo
f51b56558d
Document AUTH_KEY_DUPLICATED, better assistant UX
2018-10-19 19:32:17 +02:00
Lonami Exo
477fbd8dc7
Generate simple examples for the docs
2018-10-16 09:29:48 +02:00
Lonami Exo
8f04ec820f
Don't add functions as possible argument types
2018-10-15 21:12:10 +02:00
Lonami Exo
bb180a1db8
Split generator/tlobject into separate files
2018-10-15 19:29:32 +02:00
Lonami Exo
e3c4bd46fb
Reference argument types to objects when parsing .tl
2018-10-15 19:23:09 +02:00
Lonami Exo
99129daeee
Show the request that caused RPC errors in their messages
2018-10-15 18:35:51 +02:00
Lonami Exo
ee4c952290
Add descriptions for new RPC errors
2018-10-15 17:57:16 +02:00
Lonami Exo
0fcc2e5e52
Add autocast for InputDocument and InputChatPhoto
2018-10-05 14:11:47 +02:00
Lonami Exo
ec0aa65fe1
An user -> a user
2018-09-22 19:18:42 +02:00
Lonami Exo
cb6f980277
Better autocast to InputPeerDialog and documentation
2018-09-22 10:56:37 +02:00