// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!
use crate::types::Update;
impl Update {
/// This function creates an empty struct for the object Update.
pub fn new() -> Self {
Self {
update_id: 0,
message: None,
edited_message: None,
channel_post: None,
edited_channel_post: None,
inline_query: None,
chosen_inline_result: None,
callback_query: None,
shipping_query: None,
pre_checkout_query: None,
poll: None,
poll_answer: None,
my_chat_member: None,
chat_member: None,
chat_join_request: None,
}
}
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}