@Override
    public void validate() throws TelegramApiValidationException {
        if (inlineQueryId.isEmpty()) {
            throw new TelegramApiValidationException("InlineQueryId can't be empty", this);
        }
        for (InlineQueryResult result : results) {
            result.validate();
        }

        if (button != null) {
            button.validate();
        }
    }
@Test
    void testSwitchPmParameterCanNotBeEmptyIfSwitchPmTextIsPresent() {
        answerInlineQuery.setInlineQueryId("RANDOMEID");
        answerInlineQuery.setResults(new ArrayList<>());
        answerInlineQuery.setButton(InlineQueryResultsButton
                .builder()
                .text("Test Text")
                .startParameter("")
                .build());


        try {
            answerInlineQuery.validate();
        } catch (TelegramApiValidationException e) {
            assertEquals("SwitchPmParameter can't be empty or longer than 64 chars", e.getMessage());
        }
    }