TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

SendMessage.java issue

Open nikitashumsky opened this issue 3 years ago • 4 comments

SendMessage.java and SendMessage.class dont match. .java is more than half less then .class 1 2 3

nikitashumsky avatar Sep 15 '22 21:09 nikitashumsky

You're trying to use the builder pattern on the SendMessage class itself. There's a builder you can use

SendMessage sendMessage = SendMessage.builder()
                    .chatId("CHAT_ID")
                    .text("MESSAGE")
                    .build();

MouamleH avatar Sep 18 '22 01:09 MouamleH

It's normal. Because there is lombok underhood.

Chijuk avatar Sep 21 '22 18:09 Chijuk

It's normal. Because there is lombok underhood.

Thanks for answer, now I get it

nikitashumsky avatar Sep 21 '22 18:09 nikitashumsky

You're trying to use the builder pattern on the SendMessage class itself. There's a builder you can use

SendMessage sendMessage = SendMessage.builder()
                    .chatId("CHAT_ID")
                    .text("MESSAGE")
                    .build();

Thank you, I'm blind :D. Digged a little deeper then needed)

nikitashumsky avatar Sep 21 '22 18:09 nikitashumsky