Repository navigation
Releases
Releases · RashingPro/xgram-rs
v0.3.0
Changelog
Warning
This release introduces breaking changes. Major version is not bumped because the project is in early development stage.
New features
- Update
Messagestruct to comply with the latest Telegram Bot API - Add
Unknownupdate kind - Add
CommandContext::sendmethod
Improvements and QoL
XgramConfigwas flatten into one struct -BotConfig- Rename config option
updates_channel_capacityintoupdate_buffer_capacity - Several logging improvements
- Use
tokio'sparking_lotfeature (possible performance improvement) - Rewrite
UpdateReceiverconfiguration to use static dispatch instead of dynamic - Mark
UpdateKindandMessageEntityTypewith#[non_exhaustive]
Building and compatibility
- Project is now nightly toolchain compatible only.
Fixes
CommandContext::replynow accepts&selfinstead ofself
Repository structure
- Move dependencies features into inner crate's
Cargo.toml - Add some
Messagedeserializing tests
Full Changelog: v0.3.0-canary.1...v0.3.0
v0.3.0-canary.1
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
UpdateReceiverfor the bot to use
Improvements and QoL
- Several methods now accept
impl Into<String>instead ofString. This, among other things, allows passing&strwithout need to manually convert intoString #[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_urlupdates_http_polling_timeout -> http_updates_polling_timeout
Building and compatibility
- Enables unstable
decl_macrofeature - Requires
never_typefeature (omitted because project uses the nightly toolchain)
Fixes
- Bump
quinn-protofrom 0.11.14 to 0.11.17 (patches vulnerability, see #1 and GHSA-4w2j-m93h-cj5j)
Repository structure
- Internal crates now have their own README file
Full Changelog: v0.2.0...v0.3.0-canary.1
v0.2.0
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
GlobalConfigwith more reliableBotConfig - Use
Arc<str>instead ofArc<String>(should improve performance)
Repository structure
- Move all crates into
cratesdirectory - Better formatter and linter configuration
Full Changelog: v0.1.0...v0.2.0