Lonami Exo
180105a965
Follow PEP 518
2020-10-05 10:47:46 +02:00
apepenkov
3e188d0344
Add missing check for permissions.is_creator ( #1578 )
2020-10-03 17:16:10 +02:00
kolay
fc765f6014
Add new get_permissions method ( #1575 )
...
Closes #1574 .
2020-10-03 16:59:54 +02:00
Tulir Asokan
bf29cddbc9
Add parameter to pass raw entities when sending message ( #1577 )
2020-10-02 22:06:48 +02:00
Lonami Exo
4321153b06
Correctly emulate old to_id behaviour
2020-10-02 10:23:04 +02:00
Lonami Exo
e24c49f5be
Fix patching of message.out for self-chat
2020-10-02 10:22:38 +02:00
Lonami Exo
53920a1568
Remove handling chat peer discrepancy in NewMessage
2020-10-02 10:04:51 +02:00
Lonami Exo
18f70b3bac
Improve PEER_ID_INVALID description
2020-10-01 21:27:03 +02:00
Lonami Exo
5c93ea8019
Fix from_id/sender_id value on message updates
2020-10-01 21:22:27 +02:00
Lonami Exo
572229e536
Add aliases to access new msg fields with old names
2020-10-01 20:37:07 +02:00
Lonami Exo
522681f463
Handle UserEmpty in utils.get_peer
...
Closes #1552 .
2020-10-01 14:02:54 +02:00
Lonami Exo
5c5cee16d9
Lower log severity when receiving empty messages
2020-10-01 13:22:38 +02:00
Lonami Exo
67b87a0ea0
Evict old cached usernames in case of collision
2020-10-01 13:20:29 +02:00
Lonami Exo
233daafd96
Fix global search would fail if last message had no peer
2020-10-01 13:18:54 +02:00
Lonami Exo
4683e83287
Add set -e to update-docs.sh
...
This should prevent accidentally comitting docs in master
2020-10-01 12:23:38 +02:00
Lonami Exo
668dcd52ca
Update global search to properly use offset_rate
2020-10-01 12:23:34 +02:00
Tulir Asokan
8ce7e776c1
Add option to raise last error instead of generic ValueError ( #1571 )
2020-10-01 12:23:10 +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
Lonami Exo
10b2b60415
Fix requests were not re-enqueued if sending failed
2020-09-29 21:07:38 +02:00
Lonami Exo
c864ef7e16
Refetch msg if fileref expires while downloading docs
...
Closes #1301 .
2020-09-24 10:03:28 +02:00
Lonami Exo
75fbd28d3e
Add a workaround for sometimes-missing photos from channels
2020-09-22 11:08:17 +02:00
Lonami Exo
2c9d43d600
Move most of the code in assistant to the plugins repo
...
The assistant example will now simply be the "core" that initializes
the rest of plugins, allowing for more updates to the *bot* without
cluttering Telethon's git history.
2020-09-17 11:27:50 +02:00
Lonami Exo
219b4ecb77
Abstract away treating a file as a stream
...
Makes upload_file cleaner (context manager instead of try-finally)
and helps keep the logic "we may own this stream and need to close
it or not" separated.
It can be overengineered to allow nesting the same instance in
context managers and also provide implementations for synchronous
context managers but it adds quite a bit of unnecessary complexity
for the time being. YAGNI.
2020-09-14 16:20:44 +02:00
Daniil
9ec5707c32
Add more info on invalid sticker error ( #1558 )
2020-09-13 16:29:48 +02:00
yash-dk
1d6fd7898a
Consider all reconnect attempts as retrying ( #1557 )
...
This means that a value of 0 retries will no longer try to reconnect.
2020-09-13 09:43:01 +02:00
apepenkov
2a114917f1
Fix AlbumHack in combination with events.Raw ( #1555 )
2020-09-10 16:25:44 +02:00
Tanya Degurechaff
1afb5b95e3
Update init params to match those of tdesktop ( #1549 )
2020-09-10 14:52:25 +02:00
daaawx
8cbaacabdb
Add missing word in docs ( #1538 )
2020-09-10 14:51:31 +02:00
Allerter
1ed0f75c49
Support extracting metadata from bytes and stream objects ( #1547 )
...
This should enable more accurate uploads of in-memory files.
2020-09-08 00:20:37 +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
0c9d0db730
Update to v1.16.4
...
v1.16.3 was accidentally released without the intended bug-fixes.
2020-08-24 12:54:56 +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
penn5
1a9accbe5d
Fix warning when using formatted phones in start ( #1532 )
2020-08-24 10:53:29 +02:00
Pascal Jürgens
bde38fb748
Improve description for FILE_ID_INVALID ( #1531 )
2020-08-23 19:39:29 +02:00
Lonami Exo
bc799fd82c
Remove usage of the main group username in the docs
2020-08-23 11:45:45 +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
73109eb819
Add a workaround for channels that claim have no photos but do
2020-08-13 15:13:29 +02:00
Lonami Exo
e00496aa63
Update to v1.16.2
2020-08-11 23:16:09 +02:00
Lonami Exo
e19aa44d5c
Sort thumbs to ensure -1 is largest
...
Closes #1519 .
2020-08-11 23:14:31 +02:00
Lonami Exo
0cefc73448
Support both str and VideoSize as thumb on download_media
2020-08-11 22:31:12 +02:00
Lonami Exo
3c56a6db4d
Update to v1.16.1
2020-08-10 16:19:31 +02:00
Lonami Exo
9a0d6b9931
Don't set force_file on force_document with images
...
Otherwise, Telegram won't analyze the image and won't add it the
DocumentAttributeImageSize, causing some bots like t.me/Stickers
to break.
Closes #1507 .
2020-08-10 16:09:39 +02:00
Lonami Exo
ddeefff431
Add a warning when trying to connect to a different account
...
Closes #1172 , and also fixed a typo.
2020-08-08 17:49:00 +02:00
conetra
958698bba7
Remove square bracket around IPv6 addresses ( #1517 )
2020-08-08 13:16:01 +02:00
Lonami Exo
1d71cdc9e0
Support autocast of polls into input media when possible
...
Closes #1516 .
2020-08-07 16:03:50 +02:00
Lonami Exo
241c6c4ac8
Auto-retry on interdc call (rich) error
2020-08-03 12:35:25 +02:00
Lonami Exo
cb6ffeaabd
Slightly improve docs heuristics for video files
2020-07-28 19:46:50 +02:00