Skip to content

Commit aacb61b

Browse files
committed
closes issue #1: setMyCommands() simplification
1 parent 5ceb2d0 commit aacb61b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,6 @@ bool UniversalTelegramBot::getMe() {
353353
* Returns true, if the command list was updated successfully *
354354
********************************************************************************/
355355
bool UniversalTelegramBot::setMyCommands(const String& commandArray) {
356-
if (commandArray.isEmpty()) {
357-
#if defined(_debug)
358-
Serial.println(F("sendSetMyCommands: commandArray is empty"));
359-
#endif // defined(_debug)
360-
return false;
361-
}
362-
363356
DynamicJsonDocument payload(maxMessageLength);
364357
payload["commands"] = serialized(commandArray);
365358
bool sent = false;

0 commit comments

Comments
 (0)