mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
commit
016763cf8c
2 changed files with 7 additions and 0 deletions
|
@ -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])
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue