#![allow(clippy::too_many_arguments, clippy::new_without_default)]
use crate::types::Chat;
use crate::types::Message;
impl Message {
pub fn new(message_id: i64, date: i64, chat: Chat) -> Self {
Self {
message_id,
message_thread_id: None,
from: None,
sender_chat: None,
sender_boost_count: None,
sender_business_bot: None,
date,
business_connection_id: None,
chat,
forward_origin: None,
is_topic_message: None,
is_automatic_forward: None,
reply_to_message: None,
external_reply: None,
quote: None,
reply_to_story: None,
via_bot: None,
edit_date: None,
has_protected_content: None,
is_from_offline: None,
media_group_id: None,
author_signature: None,
text: None,
entities: None,
link_preview_options: None,
effect_id: None,
animation: None,
audio: None,
document: None,
photo: None,
sticker: None,
story: None,
video: None,
video_note: None,
voice: None,
caption: None,
caption_entities: None,
show_caption_above_media: None,
has_media_spoiler: None,
contact: None,
dice: None,
game: None,
poll: None,
venue: None,
location: None,
new_chat_members: None,
left_chat_member: None,
new_chat_title: None,
new_chat_photo: None,
delete_chat_photo: None,
group_chat_created: None,
supergroup_chat_created: None,
channel_chat_created: None,
message_auto_delete_timer_changed: None,
migrate_to_chat_id: None,
migrate_from_chat_id: None,
pinned_message: None,
invoice: None,
successful_payment: None,
users_shared: None,
chat_shared: None,
connected_website: None,
write_access_allowed: None,
passport_data: None,
proximity_alert_triggered: None,
boost_added: None,
chat_background_set: None,
forum_topic_created: None,
forum_topic_edited: None,
forum_topic_closed: None,
forum_topic_reopened: None,
general_forum_topic_hidden: None,
general_forum_topic_unhidden: None,
giveaway_created: None,
giveaway: None,
giveaway_winners: None,
giveaway_completed: None,
video_chat_scheduled: None,
video_chat_started: None,
video_chat_ended: None,
video_chat_participants_invited: None,
web_app_data: None,
reply_markup: None,
}
}
}