Skip to content

Releases

v0.3.0

v0.3.0 Pre-release
Pre-release

Choose a tag to compare

@RashingPro RashingPro released this 19 Sep 15:04
v0.3.0
597786a

Changelog

Warning

This release introduces breaking changes. Major version is not bumped because the project is in early development stage.

New features

  • Update Message struct to comply with the latest Telegram Bot API
  • Add Unknown update kind
  • Add CommandContext::send method

Improvements and QoL

  • XgramConfig was flatten into one struct - BotConfig
  • Rename config option updates_channel_capacity into update_buffer_capacity
  • Several logging improvements
  • Use tokio's parking_lot feature (possible performance improvement)
  • Rewrite UpdateReceiver configuration to use static dispatch instead of dynamic
  • Mark UpdateKind and MessageEntityType with #[non_exhaustive]

Building and compatibility

  • Project is now nightly toolchain compatible only.

Fixes

  • CommandContext::reply now accepts &self instead of self

Repository structure

  • Move dependencies features into inner crate's Cargo.toml
  • Add some Message deserializing tests

Full Changelog: v0.3.0-canary.1...v0.3.0

v0.3.0-canary.1

v0.3.0-canary.1 Pre-release
Pre-release

Choose a tag to compare

@RashingPro RashingPro released this 13 Sep 11:43
v0.3.0-canary.1
c5f7c28

Changelog

Warning

This release introduces breaking changes. Major version is not bumped because the project is in early development stage

This release is unstable canary version. Use with caution.

New features

  • Create error types for handlers and main loop
  • Implement customizing the UpdateReceiver for the bot to use

Improvements and QoL

  • Several methods now accept impl Into<String> instead of String. This, among other things, allows passing &str without need to manually convert into String
  • #[command_handler] now keeps inner function return type
  • #[command_handler] now specifies absolute paths to standard library items, reducing risk of overwriting them
  • Add doc comments to several items
  • Fix some README mistakes, add new sections
  • Rename config options
    • base_api_url -> api_base_url
    • updates_http_polling_timeout -> http_updates_polling_timeout

Building and compatibility

  • Enables unstable decl_macro feature
  • Requires never_type feature (omitted because project uses the nightly toolchain)

Fixes

Repository structure

  • Internal crates now have their own README file

Full Changelog: v0.2.0...v0.3.0-canary.1

v0.2.0

v0.2.0 Pre-release
Pre-release

Choose a tag to compare

@RashingPro RashingPro released this 12 Sep 16:30
v0.2.0
30db85a

Changelog

Warning

This release introduces breaking changes. Major version is not bumped because the project is in early development stage

QoL

  • Add xgram::prelude::* export
  • Improve handlers registering API
  • Improve #[command_handler] usage experience
  • Add several logs for better usage experience
  • Set default HTTP polling timeout to 30 seconds (was 10 seconds)

Building and compatibility

  • Switch to nightly toolchain
  • Decrease MSRV to actual minimal compatible version
  • Update dependencies

Fixes

  • Fix potential bug with Telegram's UTF16 string indexing

Internal

  • Replace GlobalConfig with more reliable BotConfig
  • Use Arc<str> instead of Arc<String> (should improve performance)

Repository structure

  • Move all crates into crates directory
  • Better formatter and linter configuration

Full Changelog: v0.1.0...v0.2.0

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@RashingPro RashingPro released this 12 Sep 15:58
v0.1.0
153a040