17
0

Commit Graph

  • a5c2e33c2f Accepting request 1296402 from devel:languages:python factory Dominique Leuenberger 2025-07-30 09:45:57 +00:00
  • d31b823f2c - Update to 1.40.0: * Additions + send_as and effect added to send_message and related methods. + MessageMediaGeoLive is now recognized for auto-input conversion. * Enhancements + Improved wording when using a likely unintended session file. + Improved behaviour for matching Markdown links. + A truly clean update-state is now fetched upon login. + Time offset is now updated more reliably after connecting. This should fix legitimate “message too old/new” issues. * Bug fixes + ChannelParticipantLeft is now skipped in iter_participants. + spoiler flag was lost on MessageMediaPhoto auto-input conversion. + KeyboardButtonCopy is now recognized as an inline button. + Downloading web-documents should now work again. Note that this still fetches the file from the original server. - Add patch stop-using-event_loop-fixture.patch: * Stop using removed event_loop fixture. - Support both upper and lower case metadata directory names. Steve Kowalik 2025-07-30 02:44:20 +00:00
  • 5d4bf590ae Accepting request 1264852 from devel:languages:python Ana Guerrero 2025-04-16 18:38:42 +00:00
  • fd700cd13a - Lowercase metadata directory name. Steve Kowalik 2025-03-26 00:57:51 +00:00
  • 5dadd2fb00 Accepting request 1253928 from devel:languages:python Ana Guerrero 2025-03-18 16:42:16 +00:00
  • a4dea7ac0c - Update to 1.39.0 * fix(session): persist session after session.set_dc * Update to layer 195 * Avoid error when trying to reset deadline for no msgbox entries * Updated to Layer 196 (#4525) * Add missing parameters to Message constructor (#4529) * 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. * 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. * Respect receive_updates=False * Improve edit_message message type hint This also allows utils.get_message_id to get the ID of InputMessageID. * Update to layer 198 * 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. * Fix overlapping URLs and improve overlapping in md Also remove the unused overlap function. * Make markdown URL regex less greedy Fixes multiple URLs in a single message. * fix: support batch sending of image URLs and video URLs in albums * Consider range list-like This allows you to pass range() to things Matej Cepl 2025-03-17 20:19:34 +00:00
  • daad4cf0e2 Accepting request 1237650 from devel:languages:python Ana Guerrero 2025-01-14 15:23:49 +00:00
  • 97cc7dc898 - Update to 1.38.1 * Fix Python 3.6 compatibility Markéta Machová 2025-01-14 07:26:10 +00:00
  • 37a633ae8d Accepting request 1225500 from devel:languages:python Ana Guerrero 2024-11-21 14:19:10 +00:00
  • 73d4966ee3 - update to 1.38.0: * Formatting entities misbehaved with albums. * Sending a Message object with a file did not use the new file. - update to 1.37.0: * Support for CDN downloads should be back. Telethon still prefers no CDN by default. * FloodWaitPremium should now be handled like any other floodwaits. * Fixed edge-case when using get_messages(..., reverse=True). * ConnectionError when using proxies should be raised properly. - update to 1.36.0: * Certain updates, such as :tl:UpdateBotStopped, should now be processed reliably. - update to 1.35.0: * "Custom secret support" should work with TcpMTProxy. * Some type hints should now be more accurate. * Session path couldn't be a pathlib.Path or None. * Python versions older than 3.9 should now be supported again. * Readthedocs should hopefully build the v1 documentation again. - update to 1.34.0: * reply_to_chat and reply_to_sender are now in Message. * parse_mode with a custom instance containing both parse and unparse should now work. * Parsing and unparsing message entities should now behave better in certain corner-cases. - update to 1.33.0: * webbrowser is now imported conditionally, to support niche environments. Library should now retry on the suddenly-common TimedOutError. - update to 1.32.0: * new and changed raw API methods - update to 1.31.0: Dirk Mueller 2024-11-21 09:33:10 +00:00
  • 49239a61c2 Accepting request 1112508 from devel:languages:python Ana Guerrero 2023-09-21 20:13:46 +00:00
  • e1505b25a6 Accepting request 1112411 from home:bmwiedemann:branches:devel:languages:python Ondřej Súkup 2023-09-20 09:36:43 +00:00
  • 3b88f2ac9d Accepting request 1040444 from devel:languages:python Dominique Leuenberger 2022-12-06 13:23:46 +00:00
  • c2b88c2c32 Accepting request 1040417 from home:yarunachalam:branches:devel:languages:python Dirk Mueller 2022-12-05 21:26:32 +00:00
  • 68bbbf0a07 Accepting request 1032173 from devel:languages:python Dominique Leuenberger 2022-10-29 18:17:28 +00:00
  • fbb0d84a0d Accepting request 1031642 from home:yarunachalam:branches:devel:languages:python Matej Cepl 2022-10-29 11:41:56 +00:00
  • cb84d8eb05 Accepting request 1006032 from devel:languages:python Dominique Leuenberger 2022-09-26 16:48:28 +00:00
  • 5025e6646c changelog Markéta Machová 2022-09-26 08:37:24 +00:00
  • 39c04603ab Accepting request 1005498 from home:yarunachalam:branches:devel:languages:python Markéta Machová 2022-09-26 08:34:00 +00:00
  • adf893d530 Accepting request 999914 from devel:languages:python Dominique Leuenberger 2022-08-30 12:49:04 +00:00
  • 54e110439b Accepting request 999751 from home:yarunachalam:branches:devel:languages:python Dirk Mueller 2022-08-29 09:44:07 +00:00
  • c8ac988bd8 Accepting request 899977 from devel:languages:python Dominique Leuenberger 2021-06-14 21:11:22 +00:00
  • 94ccdbce58 Fix URL, use the GitHub tarballs. Matej Cepl 2021-06-14 18:22:40 +00:00
  • 56365cbcdf - Update to 1.21.1: - New schema and QoL improvements (v1.21) - Scheme layer used: 125 - View new and changed raw API methods. - Not many changes in this release, mostly the layer change. Lately quite a few people have been reporting TypeNotFoundError, which occurs when the server sends types that it shouldn’t. This can happen when Telegram decides to add a new, incomplete layer, and then they change the layer without bumping the layer number (so some constructor IDs no longer match and the error occurs). This layer change should fix it. - Additions - Message.click() now supports a password parameter, needed when doing things like changing the owner of a bot via @BotFather. - Enhancements - tgcrypto will now be used for encryption when installed. - Bug fixes - Message.edit wasn’t working in your own chat on events other than NewMessage. - client.delete_dialog() was not working on chats. - events.UserUpdate should now handle channels’ typing status. - InputNotifyPeer auto-cast should now work on other TLObject. - For some objects, False was not correctly serialized. - New schema and QoL improvements (v1.20) - Scheme layer used: 124 Matej Cepl 2021-06-14 14:40:36 +00:00
  • 6699cc6ea3 Accepting request 843044 from devel:languages:python Dominique Leuenberger 2020-10-21 12:39:19 +00:00
  • a8ed73cd81 - Update to 1.17.0: * Breaking Changes + Message.from_id is now a :tl:Peer, not int! If you want the marked sender ID (much like old behaviour), replace all uses of .from_id with .sender_id. This will mostly work, but of course in old and new versions you have to account for the fact that this sender may no longer be a user. + You can no longer assign to Message.reply_to_msg_id <telethon.tl.custom.message.Message.reply_to_msg_id> and Message.to_id <telethon.tl.custom.message.Message.to_id> because these are now properties that offer a "view" to the real value from a different field. + Answering inline queries with a photo or document will now send the photo or document used in the resulting message by default. Not sending the media was technically a bug, but some people may be relying on this old behaviour. You can use the old behaviour with include_media=False. * Additions + New raise_last_call_error parameter in the client constructor to raise the same error produced by the last failing call, rather than a generic ValueError. + New formatting_entities parameter in client.send_message() <telethon.client.messages.MessageMethods.send_message>, and client.send_file() <telethon.client.uploads.UploadMethods.send_file> to bypass the parse mode and manually specify the formatting entities. + New client.get_permissions() <telethon.client.chats.ChatMethods.get_permissions> method to query a participant's permissions in a group or channel. This request is slightly expensive in small group chats because it has to fetch the entire chat to check just a user, so use of a cache is advised. + Message.click() <telethon.tl.custom.message.Message.click> now works on normal polls! + New local_addr parameter in the client constructor to use a specific local network address when connecting to Telegram. + client.inline_query() <telethon.client.bots.BotMethods.inline_query> now lets you specify the chat where the query is being made from, which some bots need to provide certain functionality. + You can now get comments in a channel post with the reply_to parameter in client.iter_messages() <telethon.client.messages.MessageMethods.iter_messages>. Comments are messages that "reply to" a specific channel message, hence the name (which is consistent with how Telegram's API calls it). * Enhancements + Updated documentation and list of known errors. + If hachoir is available, the file metadata can now be extracted from streams and in-memory bytes. + The default parameters used to initialize a connection now match the format of those used by Telegram Desktop. + Specifying 0 retries will no longer cause the library to attempt to reconnect. + The library should now be able to reliably download very large files. + Global search should work more reliably now. + Old usernames are evicted from cache, so getting entities by cached username should now be more reliable. + Slightly less noisy logs. + Stability regarding transport-level errors (transport flood, authorization key not found) should be improved. In particular, you should no longer be getting unnecessarily logged out. + Reconnection should no longer occur if the client gets logged out (for example, another client revokes the session). + Bug fixes + In some cases, there were issues when using events.Album <telethon.events.album.Album> together with events.Raw <telethon.events.raw.Raw>. + For some channels, one of their channel photos would not show up in client.iter_profile_photos() <telethon.client.chats.ChatMethods.iter_profile_photos>. + In some cases, a request that failed to be sent would be forgotten, causing the original caller to be "locked" forever for a response that would never arrive. Failing requests should now consistently be automatically re-sent. + The library should more reliably handle certain updates with "empty" data. + Sending documents in inline queries should now work fine. + Manually using client.sign_up <telethon.client.auth.AuthMethods.sign_up> should now work correctly, instead of claiming "code invalid". + Special mention to some of the other changes in the 1.16.x series: + The thumb for download_media now supports both str and :tl:VideoSize. + Thumbnails are sorted, so -1 is always the largest. Steve Kowalik 2020-10-21 03:35:25 +00:00
  • 03c935f1f2 Accepting request 833585 from devel:languages:python Dominique Leuenberger 2020-09-11 22:08:17 +00:00
  • 5815853cf5 - Update to 1.16.4: * Added support to force_file on any media, including things that were not possible before like .webp files. * Sending a copy of messages with polls will now work when possible. * The library now automatically retries on inter-dc call errors * Square brackets removed from IPv6 addresses. This may fix IPv6 support. * New client.qr_login(). * message.click now lets you click on buttons requesting phone or location. Steve Kowalik 2020-09-11 02:27:56 +00:00
  • 4768ab6f77 Accepting request 811303 from devel:languages:python Dominique Leuenberger 2020-06-04 15:54:33 +00:00
  • 77170489a0 Accepting request 811197 from home:Dead_Mozay:matrix:mautrix Tomáš Chvátal 2020-06-04 06:24:59 +00:00
  • 1fec590a5a Accepting request 780300 from devel:languages:python Dominique Leuenberger 2020-03-01 20:27:37 +00:00
  • 22924c51d0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Telethon?expand=0&rev=4 Tomáš Chvátal 2020-02-28 14:42:24 +00:00
  • 048252bb8f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Telethon?expand=0&rev=3 Tomáš Chvátal 2020-02-28 14:35:51 +00:00
  • b8094f3355 - Format with spec-cleaner - Add missing runtime dependencies Tomáš Chvátal 2020-02-28 14:15:41 +00:00
  • 3976a496f9 Accepting request 780276 from home:Dead_Mozay:matrix:mautrix Tomáš Chvátal 2020-02-28 14:14:27 +00:00