File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
library/src/test/java/com/pengrad/telegrambot Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1419,11 +1419,14 @@ public void editMessageLiveLocation() {
14191419 assertEquals ("Bad Request: message can't be edited" , response .description ());
14201420 }
14211421
1422- response = bot .execute (new EditMessageLiveLocation ("AgAAAPrwAQCj_Q4D2s-51_8jsuU" , 21 , 105 ));
1423- if (!response .isOk ()) {
1424- assertEquals (400 , response .errorCode ());
1425- assertEquals ("Bad Request: message is not modified" , response .description ());
1426- }
1422+ String buttonText = "btn_" + System .currentTimeMillis ();
1423+ response = bot .execute (
1424+ new EditMessageLiveLocation ("AgAAAPrwAQCj_Q4D2s-51_8jsuU" , 21 , 102 )
1425+ .replyMarkup (new InlineKeyboardMarkup (
1426+ new InlineKeyboardButton []{new InlineKeyboardButton (buttonText ).callbackGame (buttonText )}
1427+ ))
1428+ );
1429+ assertTrue (response .isOk ());
14271430 }
14281431
14291432 @ Test
You can’t perform that action at this time.
0 commit comments