Skip to content

Commit b1a5f85

Browse files
committed
BUGFIX: setMyCommands was not returning the proper error or success code
1 parent dc0146e commit b1a5f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ bool UniversalTelegramBot::setMyCommands(const String& commandArray) {
388388
#endif
389389
sent = checkForOkResponse(response);
390390
if (sent) break;
391-
392391
}
392+
393393
closeClient();
394-
return response;
394+
return sent;
395395
}
396396

397397

0 commit comments

Comments
 (0)