Nick80835
1cb5ff1dd5
Consider range list-like
...
This allows you to pass range() to things such as get_messages as ids= without first explicitly converting it to a list.
2025-02-09 08:42:44 +01:00
s1xu
9762a83541
fix: support batch sending of image URLs and video URLs in albums
2025-02-08 15:40:56 +01:00
Nick80835
141b620437
Make markdown URL regex less greedy
...
Fixes multiple URLs in a single message.
2025-02-05 16:56:04 +01:00
Nick80835
551c24f3e4
Fix overlapping URLs and improve overlapping in md
...
Also remove the unused overlap function.
2025-02-02 04:11:46 +01:00
Nick80835
38d024312e
Unconditionally match text and link text in markdown
...
Fixes cases where there's a nested [] in the text by matching until "](" is reached. This doesn't match newlines in URLs because that makes no sense.
2025-02-01 21:02:27 +01:00
Nick80835
a2926b548f
Update to layer 198
2025-01-28 18:23:18 +01:00
Nick80835
455acc43f6
Improve edit_message message type hint
...
This also allows utils.get_message_id to get the ID of InputMessageID.
2025-01-19 10:40:11 +01:00
Nick80835
792adb78b3
Respect receive_updates=False
2025-01-18 19:03:57 +01:00
Nick80835
5a0e69693b
Document drop_author and add drop_media_captions
...
drop_author is already supported but is undocumented. drop_media_captions for consistency with drop_author being implemented.
2025-01-17 17:02:42 +01:00
Nick80835
b9aafa3441
Fix IOError with some image modes in photo resize
...
This fixes image compression with mode "P" (potentially others) which is necessary as the server has erroneous alpha color with some types of images (mode "P" for example). This also properly applies the background argument that may be passed to _resize_photo_if_needed by always compressing images with alpha regardless of whether the server will compress the image for us.
2025-01-13 20:37:36 +01:00
Nick80835
494b20db2d
Add missing parameters to Message constructor ( #4529 )
2025-01-04 19:29:19 +01:00
Danish
0a6b649ead
Updated to Layer 196 ( #4525 )
2025-01-04 15:15:50 +01:00
Lonami
cfce68e9ad
Avoid error when trying to reset deadline for no msgbox entries
...
Closes #4520 .
2024-12-22 15:07:35 +01:00
Danipulok
225ea9c3ab
fix(session): persist session after session.set_dc
2024-11-20 17:25:56 +01:00
Lonami Exo
9ca3b599fc
Fix Python 3.6 compatibility
...
Introduced on accident by #4475 .
2024-11-18 17:04:07 +01:00
Lonami Exo
63d55bbe3d
Bump to v1.38
2024-11-17 22:32:16 +01:00
Devesh Pal
f03e4b1137
Update to Layer 192 ( #4503 )
2024-10-31 22:10:02 +01:00
Greg Eremeev
a77835a7d9
Fix reuse of captions during send msg with file ( #4500 )
2024-10-25 23:27:58 +02:00
Arkadii Halchenko
3f589b287d
Fix parse_mode with albums ( #4494 )
...
Closes #4492 .
2024-10-20 19:50:08 +02:00
Arkadii Halchenko
4553f04e49
Fix formatting_entities not working for albums ( #4475 )
2024-10-05 11:13:20 +02:00
Lonami Exo
f652f3f01a
Bump to v1.37
2024-09-23 19:01:20 +02:00
kristal
b01d3d7a2f
Fix edge case on get_messages when reverse=True ( #4455 )
...
Closes #4453 .
2024-09-05 17:00:22 +02:00
delobanov
aec957d62d
Add error message back to proxy errors ( #4443 )
2024-08-29 23:54:34 +02:00
delobanov
46854a7660
Fix ConnectionError() takes no keyword arguments with proxies ( #4440 )
2024-08-28 22:41:38 +02:00
灰白草
75408483ad
Support CDN downloads ( #4420 )
...
Closes #4327 .
2024-08-07 20:25:35 +02:00
Lonami Exo
946f803de7
Handle FloodPremiumWaitError
...
Closes #4417 .
2024-07-24 16:38:34 +02:00
2ei
cfebb9df05
Remove unused imports ( #4397 )
2024-06-21 00:06:40 +02:00
Lonami Exo
04aea46fe4
Update to v1.36
2024-06-11 16:42:47 +02:00
Lonami Exo
3def9433b8
qts_count is always assumed to be 1
...
Per the docs https://core.telegram.org/api/updates :
> events are never grouped,
> so it's assumed that qts_count is always equal to 1.
2024-06-04 23:12:02 +02:00
Lonami Exo
b3e210a1fb
Update to layer 181
2024-06-01 11:00:14 +02:00
Lonami Exo
1974b663a2
Add missing type to _store_own_updates
2024-04-28 10:16:56 +02:00
Lonami Exo
0f6dd5987e
Add readthedocs dependency on sphinx-rtd-theme
2024-04-24 19:03:26 +02:00
Lonami Exo
d77ac18695
Bump to v1.35
2024-04-24 18:51:29 +02:00
Darskiy
3ac11e15ec
Fix get_messages type hint ( #4357 )
2024-04-23 16:54:41 +02:00
Darskiy
3625bf849d
Fix get_entity type hint ( #4352 )
2024-04-18 20:52:29 +02:00
Shubham Kumar
d3a201a277
Fix regression on supported Python version ( #4347 )
2024-04-12 21:06:15 +02:00
CoderX
49a8f111d3
Add missing attributes to Message ( #4346 )
2024-04-08 21:24:43 +02:00
Lonami Exo
723fbd570f
Update to layer 177
2024-04-05 18:28:31 +02:00
Lonami Exo
26aa178cf6
Handle FileReferenceExpiredError during download
...
May fix #4341 .
2024-04-02 11:02:32 +02:00
Lindsay Zhou
9f3e7e4aa8
Fix TelegramClient init with None session ( #4339 )
2024-03-30 15:10:12 +01:00
Jordan Gillard
75d609ab2a
Fix type hint in start ( #4332 )
2024-03-26 20:30:01 +01:00
John Bezustally
4d34243b98
Add drop_author param to forward_messages ( #4329 )
2024-03-18 08:30:38 +01:00
Lonami Exo
7ceb2e0b25
Add missing quick_reply_shortcut_id
2024-03-10 10:53:32 +01:00
Lonami Exo
47178dfaef
Update to layer 176
2024-03-08 23:15:54 +01:00
Lonami Exo
d90d0dc00f
message parameter must be optional
2024-02-23 20:53:54 +01:00
Lonami Exo
d1518f002a
Fix custom Message lacking parameter
2024-02-21 17:01:03 +01:00
Confused Character
22bf0b4310
Add custom secret support to TcpMTProxy ( #4309 )
2024-02-16 22:45:38 +01:00
Lonami Exo
2b99ff65c5
Support pathlib.Path as session again
...
See #3737 .
2024-02-13 18:18:52 +01:00
Lonami Exo
65c27c5ced
Bump to v1.34
2024-02-02 18:17:21 +01:00
Just-a-xD
41eb665c9d
Fix custom parse_mode instances ( #4304 )
2024-02-02 18:16:01 +01:00