Joshua Coales
3001b620ec
Improve exception clarity for message parsing failure ( #3029 )
2021-04-17 19:10:33 +02:00
Non
a376faa3a8
Fix MD5_CHECKSUM_INVALID for small files with custom key/iv ( #3024 )
...
Closes #3023 .
2021-04-10 21:46:14 +02:00
Lonami Exo
e5a5ac5943
Remove sched_to_message special-case when mapping msgs
...
May fix #3012 .
2021-03-31 10:30:24 +02:00
Lonami Exo
f326769fa8
Add support for messages to get_stats
2021-03-20 20:20:36 +01:00
Lonami Exo
eba95ebd07
Fix delete_dialog on chats
...
Closes #1727 .
2021-03-14 11:05:47 +01:00
Tulir Asokan
0ad9b1375e
Make input entity errors less useless ( #1726 )
2021-03-14 01:32:01 +01:00
Lonami
52ae9f09ce
Fix _get_input_notify on TLObjects
...
Closes #1725 .
2021-03-13 19:06:19 +01:00
Lonami Exo
3ee94bdc5e
Update known errors and error message
...
Closes #1713
2021-03-07 16:09:47 +01:00
Lonami Exo
0d05d0d8f5
Update message to include ttl_period
2021-02-23 19:42:09 +01:00
Lonami Exo
73b9de2085
Correctly sort PhotoSizeProgressive thumb size
2021-02-13 22:47:34 +01:00
Lonami Exo
b0158b3f65
Fix download of PhotoSizeProgressive
...
Closes #1700 .
2021-02-13 22:45:12 +01:00
Lonami Exo
23041f398b
Fix messages.search accidentally being used over getHistory
...
Introduced by 668dcd52ca
(this commit
did change a lot more than it should have); the condition for search
was never updated to account for the non-None value.
Closes #1693 .
2021-02-08 22:56:27 +01:00
Lonami Exo
0997e3fa9f
Remove _log_exc workaround and NullHandler
...
It was added back in bfc408b
probably due to a misunderstanding of
https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library .
The default behaviour of logging WARNING and above is good and
desirable (hiding unhandled exceptions in update handlers by default
was a big, accidental mistake). NullHandler is used to *prevent*
this good default, so it shouldn't be used in the first place.
2021-02-02 20:47:02 +01:00
Lonami Exo
b88ec4b814
Print unhandled errors to stderr if logging is not configured
...
This should mitigate "the code doesn't work but there are no errors"
situations. Users not wanting this behaviour can configure logging
with a high-enough level that won't print anything, or set a filter.
2021-01-30 13:47:28 +01:00
Lonami Exo
4cc9645d76
Fix send_message not forwarding comment_to to send_file
2021-01-30 10:39:45 +01:00
Lonami Exo
8c38d7fb0e
Add missing parenthesis
2021-01-30 10:32:42 +01:00
Lonami Exo
ea57db7aad
Add comment_to parameter to more easily post comments
2021-01-28 21:05:20 +01:00
Lonami Exo
4e73577d59
Update to layer 123
2021-01-28 19:48:01 +01:00
Lonami Exo
320ab75818
Respect exif metadata when resizing photos
...
Closes #1663 .
2021-01-26 21:44:11 +01:00
Lonami Exo
9a6bc5ae72
Update defaults and docs for video attributes
...
Closes #1679 .
2021-01-26 21:10:21 +01:00
Lonami Exo
ad4c49aa18
Fix global message search
2021-01-26 21:07:44 +01:00
Googleplex
a886d609d9
Support sending album with URL photos ( #1681 )
...
Fixes #1408 .
2021-01-25 08:31:25 +01:00
Lonami Exo
65bf0e4c45
Add missing importç
2021-01-24 01:38:44 +01:00
Lonami Exo
fa99f6a1af
Try to handle TimeoutError during file download
2021-01-24 01:36:10 +01:00
Lonami Exo
de7cf03ba7
Stop storing asyncio loop in TelegramClient
...
The loop parameter was ignored because it shouldn't be used, but
the fact it still stored the current loop on creation messes up
with asyncio.run.
2021-01-18 22:59:19 +01:00
Shrimadhav U K
3ddb0a3903
Fix thumbnail for TDesktop and Telegram X users ( #1673 )
2021-01-17 17:31:26 +01:00
Lonami Exo
d0ee3c3a56
Return the service message produced when kicking somebody
...
Helps with #1664 .
2021-01-02 12:13:53 +01:00
Lonami Exo
dd00829f1e
Ignore PhotoPathSize thumbnail sizes
...
Closes #1655 .
2020-12-19 19:42:07 +01:00
Lonami Exo
becfe2ce7a
Start reconnect if a second ping is sent without a pong for the first
...
May help with #1564 .
2020-12-11 17:18:25 +01:00
Lonami Exo
0a4d54fca4
Update to layer 122
...
Closes #1645 .
2020-12-11 16:55:49 +01:00
Lonami Exo
1cd11391c4
Unconditionally disconnect exported senders on user disconnect
...
Borrowed senders are not disconnected immediately, but after a while.
If a borrow was used recently but the user requested the main client
to disconnect, those borrows "shouldn't" disconnect because they were
used recently. However, if the user requests a disconnect, they mean
that EVERYTHING should be disconnected, even if the borrows are recent.
This actually gets rid of warnings about send/recv tasks being destroyed,
which partially addresses #1634 . That issue may still have more causes
though.
2020-12-11 16:30:12 +01:00
penn5
44aca29057
Favour text parameter when editing inline messages ( #1643 )
2020-12-08 10:06:19 +01:00
vegeta1k95
ab3c5acf9a
Add client.set_proxy() ( #1632 )
2020-11-14 14:01:59 +01:00
Lonami Exo
9c87598950
Don't include *Empty entities in returned dialogs
2020-11-13 10:59:53 +01:00
Serhii Dylda
633986cfa6
Replace PySocks with python-socks for Python >= 3.6
...
See discussion at (https://github.com/LonamiWebs/Telethon/pull/1623 )
Small fixes for `local_addr` argument.
2020-11-09 19:59:54 +01:00
Richard
ba3a090a80
Update send_file to support grouping any file type ( #1620 )
2020-11-07 17:32:00 +01:00
Lonami Exo
a6781c8e34
Don't cache SLOW_MODE_WAIT in _flood_waited_requests
...
Closes #1600 .
2020-11-07 12:09:00 +01:00
vegeta1k95
39e899294f
Fix unhandled ValueError inside _dispatch_update() task ( #1615 )
2020-11-04 09:58:20 +01:00
Lonami Exo
64d751a397
messages.search from_user may now be a non-User
2020-10-31 11:41:37 +01:00
Lonami Exo
935ee2242d
Add method to unpin messages
2020-10-31 11:31:09 +01:00
Lonami Exo
d83c154f8d
Partial update to layer 120
2020-10-30 20:06:59 +01:00
Lonami Exo
e7f174cdc8
Fix search with offset_date causing infinite recursion
...
Bug introduced by 668dcd5
. Closes #1606 .
2020-10-25 10:33:36 +01:00
Lonami Exo
62467b6318
Fix yet another typo
...
Never make commits in a rush from your phone.
2020-10-23 21:27:39 +02:00
Lonami Exo
60c5d0d8f4
Fix up typo from last commit
2020-10-23 21:24:51 +02:00
Lonami Exo
1a2e09487c
Fix utils.get_peer not handling Self in get_messages
2020-10-23 19:02:43 +02:00
Lonami Exo
44e2ef6c79
Don't error when failing to extract response messages
2020-10-23 11:02:30 +02:00
Qwerty-Space
d56b27e570
Fix several minor typos ( #1603 )
2020-10-18 21:11:59 +02:00
Lonami Exo
4db51dff8a
Update to v1.17
2020-10-18 14:11:52 +02:00
Lonami Exo
5952a40c6d
Update iter_messages to support fetching channel comments
...
Closes #1598 .
2020-10-16 10:39:02 +02:00
Lonami Exo
4e1f582b17
Call sign_in during sign_up if needed to send the code
2020-10-15 11:43:35 +02:00