Skip to content

Commit

Permalink
added default constructor to InlineKeybordButton object
Browse files Browse the repository at this point in the history
  • Loading branch information
baderouaich committed Oct 3, 2023
1 parent 25ae03b commit 0da862d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/tgbotxx/objects/InlineKeyboardButton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace tgbotxx {
/// @brief This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
/// @ref https://core.telegram.org/bots/api#inlinekeyboardbutton
struct InlineKeyboardButton {
InlineKeyboardButton() = default;
explicit InlineKeyboardButton(const nl::json& json) {
fromJson(json);
}
Expand Down Expand Up @@ -89,4 +90,4 @@ namespace tgbotxx {
OBJECT_DESERIALIZE_FIELD(json, "pay", pay, false, true);
}
};
}
}

0 comments on commit 0da862d

Please sign in to comment.