We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ceb2d0 commit aacb61bCopy full SHA for aacb61b
src/UniversalTelegramBot.cpp
@@ -353,13 +353,6 @@ bool UniversalTelegramBot::getMe() {
353
* Returns true, if the command list was updated successfully *
354
********************************************************************************/
355
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
-
363
DynamicJsonDocument payload(maxMessageLength);
364
payload["commands"] = serialized(commandArray);
365
bool sent = false;
0 commit comments