Lonami Exo
20606b3a71
Fix from_users filter not accounting for None from_id
2020-10-05 14:01:50 +02:00
Lonami Exo
cb92a40156
Add additional asserts to debug issue with peer empty channels
2020-10-05 13:58:04 +02:00
Lonami Exo
bb3ccca333
Fix Python 3.5 compatibility issue
2020-10-05 10:50:47 +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
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
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
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
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
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
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
penn5
1a9accbe5d
Fix warning when using formatted phones in start ( #1532 )
2020-08-24 10:53:29 +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
34861ad1bc
Update to v1.16
2020-07-28 18:12:24 +02:00
Lonami Exo
f18ab08334
Add new friendly method to get channel stats
2020-07-26 13:45:30 +02:00
Lonami Exo
e12f6c747f
Extend use of force_document to work on files
...
This allows .webp files to be sent as documents and not stickers.
2020-07-26 13:03:59 +02:00
Lonami Exo
95ea2fb40c
Remove uses of gif external
...
Since it has been removed in layer 116.
2020-07-26 12:59:10 +02:00
Lonami Exo
1c3e7dda01
Avoid explicitly passing the loop to asyncio
...
This behaviour is deprecated and will be removed in future versions
of Python. Technically, it could be considered a bug (invalid usage
causing different behaviour from the expected one), and in practice
it should not break much code (because .get_event_loop() would likely
be the same event loop anyway).
2020-07-25 18:39:35 +02:00
Lonami Exo
de17a19168
Improve upload_file by properly supporting streaming files
2020-07-15 14:35:42 +02:00
Shrimadhav U K
bfb8de2736
Update upload file size limit to 2GB ( #1499 )
...
Source: https://t.me/tginfo/2656
Closes #1498 .
2020-07-06 20:11:40 +02:00
Lonami Exo
e44926114a
Bump to v1.15
2020-07-04 13:29:43 +02:00
Lonami Exo
326f70b678
Support clicking on buttons asking for phone/location
...
Closes #1492 .
2020-07-04 13:29:43 +02:00
Lonami Exo
7b852206f1
Fix click timeout error is now different
2020-07-04 13:29:43 +02:00
Lonami Exo
ab594ed0cb
Remove unused imports and variables
2020-07-04 13:29:43 +02:00