teloxide/CHANGELOG.md
Waffle Lapkin 481b2ee564
Merge pull request #3 from teloxide/pub_fields_in_methods
make all methods fields public
2020-08-16 23:38:26 +03:00

1.5 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[unreleased]

Added

  • Move core code here from the teloxide main repo, for older changes see it's CHANGELOG.md.
    • Following modules were moved:
      • bot
      • requests [except requests::respond function]
      • types
      • errors
      • net [private]
    • client_from_env was moved from teloxide::utils to crate root of teloxide-core
    • To simplify GetUpdates request it was changed to simply return Vec<Update> (instead of Vec<Result<Update, (Value, serde_json::Error)>>)
  • GetUpdatesNonStrict 'telegram' method, that behaves just like GetUpdates but doesn't fail if one of updates fails to be deserialized

Changed

  • Changed internal mechanism of sending multipart requests
  • Added RequestError::Io(io::Error) to wrap I/O error those can happen while sending files to telegram
  • Change StickerType: instead of newtypes (Png(InputFile)) use structs (Png { png_sticker: InputFile }), add StickerType::{png,tgs} constructors
  • Make all fields of all methods pub

Removed

  • RequestWithFile, now multipart requests use Request
  • Remove all #[non_exhaustive] annotations