diff --git a/src/core/types.rs b/src/core/types.rs index 3e085379..6b42bc3c 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -25,4 +25,55 @@ pub struct Chat { permissions: Option, sticker_set_name: Option, can_set_sticker_set: Option, +} + +#[derive(Debug, Deserialize)] +pub struct Message { + message_id: i64, + from: Option, + date: i64, + chat: Chat, + forward_from: Option, + forward_from_chat: Option, + forward_from_message_id: Option, + forward_signature: Option, + forward_sender_name: Option, + forward_date: Option, + reply_to_message: Option, + edit_date: Option, + media_group_id: Option, + author_signature: Option, + text: Option, + entities: Option>, + caption_entities: Option>, + audio: Option