Skip to content

Commit 3a350d9

Browse files
authored
Merge pull request #182 from gerasdf/small_fix_on_isEmpty_length
BUGFIX: just a typo on making isEmpty() changes to length() > 0
2 parents caaa1ce + 4f7c1e0 commit 3a350d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ String UniversalTelegramBot::sendPhoto(const String& chat_id, const String& phot
707707
if (reply_to_message_id && reply_to_message_id != 0)
708708
payload["reply_to_message_id"] = reply_to_message_id;
709709

710-
if (!keyboard.length() > 0) {
710+
if (keyboard.length() > 0) {
711711
JsonObject replyMarkup = payload.createNestedObject("reply_markup");
712712
replyMarkup["keyboard"] = serialized(keyboard);
713713
}

0 commit comments

Comments
 (0)