diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c7844c7..58f99914 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## unreleased +### Removed + +- Methods for creating `InlineQuery` ([#246][pr244]) + +[pr244]: https://github.com/teloxide/teloxide-core/pull/246 + ## 0.7.1 - 2022-08-19 ### Fixed diff --git a/src/types/inline_query.rs b/src/types/inline_query.rs index 41f687c7..9fbf6c54 100644 --- a/src/types/inline_query.rs +++ b/src/types/inline_query.rs @@ -33,58 +33,3 @@ pub struct InlineQuery { /// from a secret chat. pub chat_type: Option, } - -// TODO(waffle): remove -impl InlineQuery { - pub fn new(id: S1, from: User, query: S2, offset: S3) -> Self - where - S1: Into, - S2: Into, - S3: Into, - { - Self { - id: id.into(), - from, - location: None, - query: query.into(), - offset: offset.into(), - chat_type: None, - } - } - - pub fn id(mut self, val: S) -> Self - where - S: Into, - { - self.id = val.into(); - self - } - - #[must_use] - pub fn from(mut self, val: User) -> Self { - self.from = val; - self - } - - #[must_use] - pub fn location(mut self, val: Location) -> Self { - self.location = Some(val); - self - } - - pub fn query(mut self, val: S) -> Self - where - S: Into, - { - self.query = val.into(); - self - } - - pub fn offset(mut self, val: S) -> Self - where - S: Into, - { - self.offset = val.into(); - self - } -}