diff options
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/AnswerCallbackQueryParams.zig | 5 | ||||
| -rw-r--r-- | src/types/InlineKeyboardMarkup.zig | 2 | ||||
| -rw-r--r-- | src/types/SendMessageParams.zig | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/types/AnswerCallbackQueryParams.zig b/src/types/AnswerCallbackQueryParams.zig new file mode 100644 index 0000000..875cec1 --- /dev/null +++ b/src/types/AnswerCallbackQueryParams.zig | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | callback_query_id: []const u8, | ||
| 2 | text: ?[]const u8 = null, | ||
| 3 | show_alert: bool = false, | ||
| 4 | url: ?[]const u8 = null, | ||
| 5 | cache_time: u64 = 0, | ||
diff --git a/src/types/InlineKeyboardMarkup.zig b/src/types/InlineKeyboardMarkup.zig index 388d4fc..a246851 100644 --- a/src/types/InlineKeyboardMarkup.zig +++ b/src/types/InlineKeyboardMarkup.zig | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | const InlineKeyboardButton = @import("InlineKeyboardButton.zig"); | 1 | const InlineKeyboardButton = @import("InlineKeyboardButton.zig"); |
| 2 | 2 | ||
| 3 | inline_keyboard: [][]InlineKeyboardButton, | 3 | inline_keyboard: []const []const InlineKeyboardButton, |
diff --git a/src/types/SendMessageParams.zig b/src/types/SendMessageParams.zig index 8c84940..587055c 100644 --- a/src/types/SendMessageParams.zig +++ b/src/types/SendMessageParams.zig | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | const InlineKeyboardMarkup = @import("InlineKeyboardMarkup.zig"); | ||
| 1 | const LinkPreviewOptions = @import("LinkPreviewOptions.zig"); | 2 | const LinkPreviewOptions = @import("LinkPreviewOptions.zig"); |
| 2 | const MessageEntity = @import("MessageEntity.zig"); | 3 | const MessageEntity = @import("MessageEntity.zig"); |
| 3 | const ParseMode = @import("parse_mode.zig").ParseMode; | 4 | const ParseMode = @import("parse_mode.zig").ParseMode; |
| @@ -15,4 +16,5 @@ disable_notification: ?bool = null, | |||
| 15 | protect_content: ?bool = null, | 16 | protect_content: ?bool = null, |
| 16 | message_effect_id: ?[]const u8 = null, | 17 | message_effect_id: ?[]const u8 = null, |
| 17 | reply_parameters: ?ReplyParameters = null, | 18 | reply_parameters: ?ReplyParameters = null, |
| 18 | // TODO: reply_markup: InlineKeyboardMarkup OR ReplyKeyboardMarkup OR ReplyKeyboardRemove OR ForceReply | 19 | // TODO: InlineKeyboardMarkup OR ReplyKeyboardMarkup OR ReplyKeyboardRemove OR ForceReply |
| 20 | reply_markup: ?InlineKeyboardMarkup = null, | ||