Skip to content

Commit

Permalink
Merge pull request #249 from llnulldisk/master
Browse files Browse the repository at this point in the history
Api: Set default value of replyMarkup to nullptr (#248)
  • Loading branch information
reo7sp authored Dec 22, 2022
2 parents d2bf07f + 4b99da4 commit 2544005
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions include/tgbot/Api.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ friend class Bot;
const std::string& text,
bool disableWebPagePreview = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& entities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -265,7 +265,7 @@ friend class Bot;
boost::variant<InputFile::Ptr, std::string> photo,
const std::string& caption = "",
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -307,7 +307,7 @@ friend class Bot;
const std::string& title = "",
boost::variant<InputFile::Ptr, std::string> thumb = "",
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -341,7 +341,7 @@ friend class Bot;
boost::variant<InputFile::Ptr, std::string> thumb = "",
const std::string& caption = "",
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -383,7 +383,7 @@ friend class Bot;
boost::variant<InputFile::Ptr, std::string> thumb = "",
const std::string& caption = "",
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -422,7 +422,7 @@ friend class Bot;
boost::variant<InputFile::Ptr, std::string> thumb = "",
const std::string& caption = "",
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -456,7 +456,7 @@ friend class Bot;
const std::string& caption = "",
std::int32_t duration = 0,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
bool disableNotification = false,
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>(),
Expand Down Expand Up @@ -490,7 +490,7 @@ friend class Bot;
std::int32_t duration = 0,
std::int32_t length = 0,
boost::variant<InputFile::Ptr, std::string> thumb = "",
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool allowSendingWithoutReply = false,
bool protectContent = false,
std::int32_t messageThreadId = 0) const;
Expand Down Expand Up @@ -542,7 +542,7 @@ friend class Bot;
float longitude,
std::int32_t livePeriod = 0,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool disableNotification = false,
float horizontalAccuracy = 0,
std::int32_t heading = 0,
Expand Down Expand Up @@ -623,7 +623,7 @@ friend class Bot;
const std::string& foursquareType = "",
bool disableNotification = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& googlePlaceId = "",
const std::string& googlePlaceType = "",
bool allowSendingWithoutReply = false,
Expand Down Expand Up @@ -654,7 +654,7 @@ friend class Bot;
const std::string& vcard = "",
bool disableNotification = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool allowSendingWithoutReply = false,
bool protectContent = false,
std::int32_t messageThreadId = 0) const;
Expand Down Expand Up @@ -689,7 +689,7 @@ friend class Bot;
const std::vector<std::string>& options,
bool disableNotification = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool isAnonymous = true,
const std::string& type = "",
bool allowsMultipleAnswers = false,
Expand Down Expand Up @@ -721,7 +721,7 @@ friend class Bot;
Message::Ptr sendDice(boost::variant<std::int64_t, std::string> chatId,
bool disableNotification = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& emoji = "",
bool allowSendingWithoutReply = false,
bool protectContent = false,
Expand Down Expand Up @@ -1400,7 +1400,7 @@ friend class Bot;
const std::string& inlineMessageId = "",
const std::string& parseMode = "",
bool disableWebPagePreview = false,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::vector<MessageEntity::Ptr>& entities = std::vector<MessageEntity::Ptr>()) const;

/**
Expand All @@ -1420,7 +1420,7 @@ friend class Bot;
std::int32_t messageId = 0,
const std::string& caption = "",
const std::string& inlineMessageId = "",
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
const std::string& parseMode = "",
const std::vector<MessageEntity::Ptr>& captionEntities = std::vector<MessageEntity::Ptr>()) const;

Expand All @@ -1442,7 +1442,7 @@ friend class Bot;
boost::variant<std::int64_t, std::string> chatId = 0,
std::int32_t messageId = 0,
const std::string& inlineMessageId = "",
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
GenericReply::Ptr replyMarkup = nullptr) const;

/**
* @brief Use this method to edit only the reply markup of messages.
Expand All @@ -1457,7 +1457,7 @@ friend class Bot;
Message::Ptr editMessageReplyMarkup(boost::variant<std::int64_t, std::string> chatId = 0,
std::int32_t messageId = 0,
const std::string& inlineMessageId = "",
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>()) const;
GenericReply::Ptr replyMarkup = nullptr) const;

/**
* @brief Use this method to stop a poll which was sent by the bot.
Expand Down Expand Up @@ -1509,7 +1509,7 @@ friend class Bot;
Message::Ptr sendSticker(boost::variant<std::int64_t, std::string> chatId,
boost::variant<InputFile::Ptr, std::string> sticker,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool disableNotification = false,
bool allowSendingWithoutReply = false,
bool protectContent = false,
Expand Down Expand Up @@ -1722,7 +1722,7 @@ friend class Bot;
bool sendEmailToProvider = false,
bool isFlexible = false,
std::int32_t replyToMessageId = 0,
GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(),
GenericReply::Ptr replyMarkup = nullptr,
bool disableNotification = false,
bool allowSendingWithoutReply = false,
std::int32_t maxTipAmount = 0,
Expand Down

0 comments on commit 2544005

Please sign in to comment.