mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 12:31:14 +01:00
481b2ee564
make all methods fields public
1.5 KiB
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'sCHANGELOG.md
.- Following modules were moved:
bot
requests
[exceptrequests::respond
function]types
errors
net
[private]
client_from_env
was moved fromteloxide::utils
to crate root ofteloxide-core
- To simplify
GetUpdates
request it was changed to simply returnVec<Update>
(instead ofVec<Result<Update, (Value, serde_json::Error)>>
)
- Following modules were moved:
GetUpdatesNonStrict
'telegram' method, that behaves just likeGetUpdates
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 }
), addStickerType::{png,tgs}
constructors - Make all fields of all methods
pub
Removed
RequestWithFile
, now multipart requests useRequest
- Remove all
#[non_exhaustive]
annotations