Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

fix(deps): update rust crate teloxide to 0.15#58

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/teloxide-0.x
Open

fix(deps): update rust crate teloxide to 0.15#58
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/teloxide-0.x

Conversation

@renovate

@renovate renovate Bot commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
teloxide dependencies minor 0.13 -> 0.15

Release Notes

teloxide/teloxide (teloxide)

v0.15.0

Compare Source

Added
  • Add two examples to demonstrate how to execute functions before and after some endpoint:
    • [examples/middlewares.rs][examples/middlewares.rs]
    • [examples/middlewares_fallible.rs][examples/middlewares_fallible.rs]
Changed
  • Implement Clone for teloxide::RequestError
    • RequestError::Network now accepts Arc<reqwest::Error> [BC]
    • RequestError::InvalidJson now accepts source: Arc<serde_json::Error> [BC]
    • RequestError::Io now accepts Arc<io::Error> [BC]
  • Implement Clone for teloxide::DownloadError
    • DownloadError::Network now accepts Arc<reqwest::Error> [BC]
    • DownloadError::Io now accepts Arc<std::io::Error> [BC]
  • If TELOXIDE_DIALOGUE_BEHAVIOUR environment variable is set to default, .enter_dialogue will never error, instead setting the dialogue to default (PR 1187)
  • D (state) now has to implement Clone for HandlerExt::enter_dialogue and dialogue::enter [BC]
Deprecated
  • DispatcherBuilder::stack_size because it is now a no-op (see PR 1320 for more details).
Fixed
  • Thread being locked because of thread spawining in dispatcher (issue 1236)

v0.14.1

Compare Source

Fixed

v0.14.0

Compare Source

Added
  • filter_boost_added and filter_reply_to_story filters to the MessageFilterExt trait (PR 1131)
  • filter_mention_command filter to the HandlerExt trait (issue 494)
  • filter_business_connection, filter_business_message, filter_edited_business_message, and filter_deleted_business_messages filters to the UpdateFilterExt trait (PR 1146)
  • Syntax sugar for making requests (issue 1143):
    • bot.forward, bot.edit_live_location, bot.stop_live_location, bot.set_reaction, bot.pin, bot.unpin, bot.edit_text, bot.edit_caption, bot.edit_media, bot.edit_reply_markup, bot.stop_poll_message, bot.delete and bot.copy methods to the new crate::sugar::bot::BotMessagesExt trait
    • req.reply_to method to the new crate::sugar::request::RequestReplyExt trait
    • req.disable_link_preview method to the new crate::sugar::request::RequestLinkPreviewExt trait
  • stack_size setter to DispatcherBuilder (PR 1185)
  • utils::render module to render HTML/Markdown-formatted output (PR 1152)
  • Bot::from_env now can read and use TELOXIDE_API_URL environmental variable (PR 1197)
  • Improved developer experience: (PR 1255)
    • Added devcontainer support. It was tested with VS Codium on Fedora/Podman and Ubuntu/Docker, but should work for any platform that supports devcontainers
    • Added Justfile for common tasks. E.g. run just ci for a full check, similar to what we do in CI (do it before sending PR!)
  • tracing feature, that enables trait UpdateHandlerExt that instruments UpdateHandler with a custom tracing::Span (PR 877)
  • Support for TBA 7.3 (PR 1159)
    • Add filter_chat_background_set to MessageFilterExt trait
  • Support for TBA 7.4 (PR 1280)
  • Support for TBA 7.5 (PR 1281)
Changed
  • Environment bumps: (PR 1147, PR 1225)
    • MSRV (Minimal Supported Rust Version) was bumped from 1.70.0 to 1.80.0
    • Some dependencies was bumped: axum to 0.8.0, sqlx to 0.8.1, tower to 0.5.0, reqwest to 0.12.7, tower-http to 0.6.2, derive_more to 1.0.0, serde_with to 3.12.0, aquamarine to 0.6.0, deadpool-redis to 0.20.0, thiserror to 2.0.11, syn to 2.0.96, bitflags to 2
    • tokio version was explicitly specified as 1.39
  • Added new Send and Sync trait bounds to the UListener and Eh generic parameters of try_dispatch_with_listener and dispatch_with_listener (PR 1185) [BC]
  • Renamed Limits::messages_per_min_channel to messages_per_min_channel_or_supergroup to reflect its actual behavior (PR 1214)
  • Added derive Clone, Debug, PartialEq, Eq, Hash to ChatPermissions (PR 1242)
  • Added derive Clone, Debug to Settings (PR 1242)
  • The Throttle adaptor now also throttles forward_messages and copy_messages like their non-batch counterparts, as well as send_game (PR 1229)
  • Also parse commands from text captions (PR 1285)
Fixed
  • Now Vec in requests serializes into [number] instead of [ {message_id: number} ], forward_messages, copy_messages and delete_messages now work properly
  • Now InlineQueryResultsButton serializes properly (issue 1181)
  • Now ThreadId is able to serialize in multipart requests (PR 1179)
  • Now stack does not overflow on dispatch (issue 1154)
  • Implement RequestReplyExt and RequestLinkPreviewExt on setters from teloxide_core::payloads so syntax sugar can work on bot adaptors too (PR 1270)
  • Now blockquote handling in the render module works correctly (PR 1267)
  • Now blockquote generation in the utils::markdown module works correctly (PR 1273)
  • Fixed calculation of per-second limits in the Throttle adaptor (PR 1212)
  • Parsing of get_chat responses for channels with paid reactions (PR 1284)
  • Fix the issue where requests will not consider API URL subpath (PR 1295)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/teloxide-0.x branch from 85e761e to ca6f848 Compare April 4, 2025 14:14
@renovate renovate Bot changed the title fix(deps): update rust crate teloxide to 0.14 fix(deps): update rust crate teloxide to 0.15 Apr 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants