diff --git a/CHANGELOG.md b/CHANGELOG.md index ad76632a..922aed70 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 +### Fixed + +- Serialization of `SendPoll::type_` (it's now possible to send quiz polls) ([#181][pr181]) + +[pr181]: https://github.com/teloxide/teloxide-core/pull/181 + ### Added - `Payload::timeout_hint` method to properly handle long running requests like `GetUpdates` ([#180][pr180]) diff --git a/src/payloads/send_poll.rs b/src/payloads/send_poll.rs index 52d19938..6b37f9c9 100644 --- a/src/payloads/send_poll.rs +++ b/src/payloads/send_poll.rs @@ -29,6 +29,7 @@ impl_payload! { /// True, if the poll needs to be anonymous, defaults to True pub is_anonymous: bool, /// Poll type, “quiz” or “regular”, defaults to “regular” + #[serde(rename = "type")] pub type_: PollType, /// True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False pub allows_multiple_answers: bool,