mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Added Poll, PollOption
This commit is contained in:
parent
0a87a8ecd2
commit
383d17ef47
1 changed files with 13 additions and 0 deletions
13
src/core/types/poll.rs
Normal file
13
src/core/types/poll.rs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
|
||||||
|
pub struct Poll {
|
||||||
|
pub id: String,
|
||||||
|
pub question: String,
|
||||||
|
pub options: Vec<PollOption>,
|
||||||
|
pub is_closed: bool
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
|
||||||
|
pub struct PollOption {
|
||||||
|
pub text: String,
|
||||||
|
pub voter_count: i32
|
||||||
|
}
|
Loading…
Reference in a new issue