N
N
Nikita Rostov2020-11-30 18:25:14
Java
Nikita Rostov, 2020-11-30 18:25:14

Keyboards Telegram Bot?

I'm trying to make a telegram bot. I am learning to make a keyboard in chat bots, according to this article https://habr.com/ru/post/418905/
Errors in:

keyboardButtonsRow1.add(new InlineKeyboardButton().setText("Fi4a")<b>.setCallbackData</b>("CallFi4a"));
return new SendMessage().setChatId(<b>chatId</b>).setText("Пример").setReplyMarkup(inlineKeyboardMarkup);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2020-11-30
@AIID1994

But unfortunately a mistake on a mistake.

The fact that it does not work, but there is an error (exception) and there is "where to dig" is a good sign. It's bad when there are no errors and nothing works.
As for the exception being thrown, it would be nice if you provide an error log (stacktrace) to help you. So, it's hard to say what exactly you have a problem with.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question