diff options
Diffstat (limited to 'src/types/Message.zig')
| -rw-r--r-- | src/types/Message.zig | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/src/types/Message.zig b/src/types/Message.zig new file mode 100644 index 0000000..448ca86 --- /dev/null +++ b/src/types/Message.zig | |||
| @@ -0,0 +1,139 @@ | |||
| 1 | const Animation = @import("Animation.zig"); | ||
| 2 | const Audio = @import("Audio.zig"); | ||
| 3 | const Chat = @import("Chat.zig"); | ||
| 4 | const ChatBackground = @import("ChatBackground.zig"); | ||
| 5 | const ChatBoostAdded = @import("ChatBoostAdded.zig"); | ||
| 6 | const ChatShared = @import("ChatShared.zig"); | ||
| 7 | const Contact = @import("Contact.zig"); | ||
| 8 | const Dice = @import("Dice.zig"); | ||
| 9 | const Document = @import("Document.zig"); | ||
| 10 | const ExternalReplyInfo = @import("ExternalReplyInfo.zig"); | ||
| 11 | const ForumTopicClosed = @import("ForumTopicClosed.zig"); | ||
| 12 | const ForumTopicCreated = @import("ForumTopicCreated.zig"); | ||
| 13 | const ForumTopicEdited = @import("ForumTopicEdited.zig"); | ||
| 14 | const ForumTopicReopened = @import("ForumTopicReopened.zig"); | ||
| 15 | const Game = @import("Game.zig"); | ||
| 16 | const GeneralForumTopicHidden = @import("GeneralForumTopicHidden.zig"); | ||
| 17 | const GeneralForumTopicUnhidden = @import("GeneralForumTopicUnhidden.zig"); | ||
| 18 | const Giveaway = @import("Giveaway.zig"); | ||
| 19 | const GiveawayCompleted = @import("GiveawayCompleted.zig"); | ||
| 20 | const GiveawayCreated = @import("GiveawayCreated.zig"); | ||
| 21 | const GiveawayWinners = @import("GiveawayWinners.zig"); | ||
| 22 | const InlineKeyboardMarkup = @import("InlineKeyboardMarkup.zig"); | ||
| 23 | const Invoice = @import("Invoice.zig"); | ||
| 24 | const LinkPreviewOptions = @import("LinkPreviewOptions.zig"); | ||
| 25 | const Location = @import("Location.zig"); | ||
| 26 | const MaybeInaccessibleMessage = @This(); | ||
| 27 | const Message = @This(); | ||
| 28 | const MessageAutoDeleteTimerChanged = @import("MessageAutoDeleteTimerChanged.zig"); | ||
| 29 | const MessageEntity = @import("MessageEntity.zig"); | ||
| 30 | const MessageOrigin = @import("message_origin.zig").MessageOrigin; | ||
| 31 | const PaidMediaInfo = @import("PaidMediaInfo.zig"); | ||
| 32 | const PassportData = @import("PassportData.zig"); | ||
| 33 | const PhotoSize = @import("PhotoSize.zig"); | ||
| 34 | const Poll = @import("Poll.zig"); | ||
| 35 | const ProximityAlertTriggered = @import("ProximityAlertTriggered.zig"); | ||
| 36 | const RefundedPayment = @import("RefundedPayment.zig"); | ||
| 37 | const Sticker = @import("Sticker.zig"); | ||
| 38 | const Story = @import("Story.zig"); | ||
| 39 | const SuccessfulPayment = @import("SuccessfulPayment.zig"); | ||
| 40 | const TextQuote = @import("TextQuote.zig"); | ||
| 41 | const User = @import("User.zig"); | ||
| 42 | const UsersShared = @import("UsersShared.zig"); | ||
| 43 | const Venue = @import("Venue.zig"); | ||
| 44 | const Video = @import("Video.zig"); | ||
| 45 | const VideoChatEnded = @import("VideoChatEnded.zig"); | ||
| 46 | const VideoChatParticipantsInvited = @import("VideoChatParticipantsInvited.zig"); | ||
| 47 | const VideoChatScheduled = @import("VideoChatScheduled.zig"); | ||
| 48 | const VideoChatStarted = @import("VideoChatStarted.zig"); | ||
| 49 | const VideoNote = @import("VideoNote.zig"); | ||
| 50 | const Voice = @import("Voice.zig"); | ||
| 51 | const WebAppData = @import("WebAppData.zig"); | ||
| 52 | const WriteAccessAllowed = @import("WriteAccessAllowed.zig"); | ||
| 53 | |||
| 54 | message_id: u64, | ||
| 55 | message_thread_id: ?u64 = null, | ||
| 56 | from: ?User = null, | ||
| 57 | sender_chat: ?Chat = null, | ||
| 58 | sender_boost_count: ?u64 = null, | ||
| 59 | sender_business_bot: ?User = null, | ||
| 60 | // If this is a MaybeInaccessibleMessage this will be 0 if this is inaccessible | ||
| 61 | date: u64, | ||
| 62 | business_connection_id: ?[]const u8 = null, | ||
| 63 | chat: Chat, | ||
| 64 | forward_origin: ?MessageOrigin = null, | ||
| 65 | is_topic_message: bool = false, | ||
| 66 | is_automatic_forward: bool = false, | ||
| 67 | reply_to_message: ?*Message = null, | ||
| 68 | external_reply: ?ExternalReplyInfo = null, | ||
| 69 | quote: ?TextQuote = null, | ||
| 70 | reply_to_story: ?Story = null, | ||
| 71 | via_bot: ?User = null, | ||
| 72 | edit_date: ?u64 = null, | ||
| 73 | has_protected_content: bool = false, | ||
| 74 | is_from_offline: bool = false, | ||
| 75 | media_group_id: ?[]const u8 = null, | ||
| 76 | author_signature: ?[]const u8 = null, | ||
| 77 | text: ?[]const u8 = null, | ||
| 78 | entities: ?[]MessageEntity = null, | ||
| 79 | link_preview_options: ?LinkPreviewOptions = null, | ||
| 80 | effect_id: ?[]const u8 = null, | ||
| 81 | animation: ?Animation = null, | ||
| 82 | audio: ?Audio = null, | ||
| 83 | document: ?Document = null, | ||
| 84 | paid_media: ?PaidMediaInfo = null, | ||
| 85 | photo: ?[]PhotoSize = null, | ||
| 86 | sticker: ?Sticker = null, | ||
| 87 | story: ?Story = null, | ||
| 88 | video: ?Video = null, | ||
| 89 | video_note: ?VideoNote = null, | ||
| 90 | voice: ?Voice = null, | ||
| 91 | caption: ?[]const u8 = null, | ||
| 92 | caption_entities: ?[]MessageEntity = null, | ||
| 93 | show_caption_above_media: bool = false, | ||
| 94 | has_media_spoiler: bool = false, | ||
| 95 | contact: ?Contact = null, | ||
| 96 | dice: ?Dice = null, | ||
| 97 | game: ?Game = null, | ||
| 98 | poll: ?Poll = null, | ||
| 99 | venue: ?Venue = null, | ||
| 100 | location: ?Location = null, | ||
| 101 | new_chat_members: ?[]User = null, | ||
| 102 | left_chat_member: ?User = null, | ||
| 103 | new_chat_title: ?[]const u8 = null, | ||
| 104 | new_chat_photo: ?[]PhotoSize = null, | ||
| 105 | delete_chat_photo: bool = false, | ||
| 106 | group_chat_created: bool = false, | ||
| 107 | supergroup_chat_created: bool = false, | ||
| 108 | channel_chat_created: bool = false, | ||
| 109 | message_auto_delete_timer_changed: ?MessageAutoDeleteTimerChanged = null, | ||
| 110 | migrate_to_chat_id: ?i64 = null, | ||
| 111 | migrate_from_chat_id: ?i64 = null, | ||
| 112 | pinned_message: ?*MaybeInaccessibleMessage = null, | ||
| 113 | invoice: ?Invoice = null, | ||
| 114 | successful_payment: ?SuccessfulPayment = null, | ||
| 115 | refunded_payment: ?RefundedPayment = null, | ||
| 116 | users_shared: ?UsersShared = null, | ||
| 117 | chat_shared: ?ChatShared = null, | ||
| 118 | connected_website: ?[]const u8 = null, | ||
| 119 | write_access_allowed: ?WriteAccessAllowed = null, | ||
| 120 | passport_data: ?PassportData = null, | ||
| 121 | proximity_alert_triggered: ?ProximityAlertTriggered = null, | ||
| 122 | boost_added: ?ChatBoostAdded = null, | ||
| 123 | chat_background_set: ?ChatBackground = null, | ||
| 124 | forum_topic_created: ?ForumTopicCreated = null, | ||
| 125 | forum_topic_edited: ?ForumTopicEdited = null, | ||
| 126 | forum_topic_closed: ?ForumTopicClosed = null, | ||
| 127 | forum_topic_reopened: ?ForumTopicReopened = null, | ||
| 128 | general_forum_topic_hidden: ?GeneralForumTopicHidden = null, | ||
| 129 | general_forum_topic_unhidden: ?GeneralForumTopicUnhidden = null, | ||
| 130 | giveaway_created: ?GiveawayCreated = null, | ||
| 131 | giveaway: ?Giveaway = null, | ||
| 132 | giveaway_winners: ?GiveawayWinners = null, | ||
| 133 | giveaway_completed: ?*GiveawayCompleted = null, | ||
| 134 | video_chat_scheduled: ?VideoChatScheduled = null, | ||
| 135 | video_chat_started: ?VideoChatStarted = null, | ||
| 136 | video_chat_ended: ?VideoChatEnded = null, | ||
| 137 | video_chat_participants_invited: ?VideoChatParticipantsInvited = null, | ||
| 138 | web_app_data: ?WebAppData = null, | ||
| 139 | reply_markup: ?InlineKeyboardMarkup = null, | ||