Skip to content

v0.18.0

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Oct 15:21
· 1 commit to master since this release

Changed

  • MessageFilterExt::filter_reply_to_message now inserts teloxide::dispatching::ReplyToMessage into the dependency map instead of a bare Message, so it no longer overrides the original Message (#751) [BC]

Added

  • Added support for Telegram Bot API 10.3
    • Rich-message buttons and blocks, ephemeral message parameters, generation updates, reply markup, permissions, and community/gift fields
    • Update::filter_stopped_message_generation and its dispatcher allowed-update hint
    • receiver_user_id/callback_query_id send-method parameters were replaced by ephemeral_message_parameters [BC]
    • See its changelog for more information
  • Added support for Telegram Bot API 10.2 [BC]
    • Rich-message input, ephemeral messages, communities, and subscription updates
    • See its changelog for more information
  • Added support for Telegram Bot API 10.1 [BC]
  • Added support for Telegram Bot API 10.0
  • Added support for Telegram Bot API 9.6
  • Added support for Telegram Bot API 9.5
  • Support for TBA 9.4, see its changelog for more information
  • Support for TBA 9.3, see its changelog for more information [BC]
  • MessageToEditHasNoText variant to ApiError (#1426)
  • ParticipantIdInvalid and ChatAdminRequired variants to ApiError (#1349)
  • Support for TBA 9.2 (#1403)
    • Add filter_suggested_post_approved, filter_suggested_post_approval_failed, filter_suggested_post_declined, filter_suggested_post_paid, filter_suggested_post_refunded filters to the MessageFilterExt trait
    • ChatFullInfoPublicKind::Supergroup is now of type Box<ChatFullInfoPublicSupergroup> instead of ChatFullInfoPublicSupergroup [BC]

Fixed

  • Make sure postgres-storage-rustls feature actually enables rustls-based postgres storage (#1400)

  • Escape @ mentions in markdown::user_mention_or_link (#1411)

  • Add local TBA file downloading support in crate::net::download (#1173)

  • Added schema and rust types checking (#1396) [BC]

    • delete_chat_photo method now returns True, not String
    • upload_sticker_file method now returns File instead of FileMeta
    • photo_size, photo_width and photo_height parameters of create_invoice_link method now are of type u32, not String
    • get_game_high_scores method now returns Vec<GameHighScore>, not True
    • BusinessMessagesDeleted struct now has correct deserialization of message_ids field
    • accent_color_id field of ChatFullInfo struct now is of type u8, not Option<u8>
    • EncryptedPassportElement and EncryptedPassportElementKind structs now deserialize correctly
    • photo field of PaidMediaPhoto struct now is of type Vec<PhotoSize>, not PhotoSize
    • premium_animation field of StickerKind::Regular enum variant is now of type Option<File>, not Option<FileMeta>
    • users field of VideoChatParticipantsInvited struct now is of type Vec<User>, not Option<Vec<User>>
  • Don't ignore argument separator in CommandEnum and both separators in Command (#1462)

    • Now it's possible to specify separator in each command variant
    • Usage of command_separator in a command variant now leads to a compile time error instead of silent ignoring
    • Now usage of separator without parse_with = "split" both in the command enum and in the command variant gives a compile time error

Changed

  • MSRV (Minimal Supported Rust Version) was bumped from 1.85 to 1.88 [BC]
  • Some dependencies were bumped: derive_more to 2.0.1, deadpool-redis to 0.22.0 (#1408)