diff options
| author | levlam <levlam@telegram.org> | 2026-02-19 15:02:29 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-02-19 15:02:29 +0300 |
| commit | d6e44222430dac047c1eebc4cbbfd7603a1353e5 (patch) | |
| tree | 6106d9efcf74ec58b101eaa91947417682c06927 /example | |
| parent | 759e4a1333151d744b2a40cbf79092909edec5f8 (diff) | |
Fix Java example.
Diffstat (limited to 'example')
| -rw-r--r-- | example/java/org/drinkless/tdlib/example/Example.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/java/org/drinkless/tdlib/example/Example.java b/example/java/org/drinkless/tdlib/example/Example.java index 0b256264d..bc24d9b5a 100644 --- a/example/java/org/drinkless/tdlib/example/Example.java +++ b/example/java/org/drinkless/tdlib/example/Example.java @@ -289,7 +289,10 @@ public final class Example { private static void sendMessage(long chatId, String message) { // initialize reply markup just for testing - TdApi.InlineKeyboardButton[] row = {new TdApi.InlineKeyboardButton("https://telegram.org?1", new TdApi.InlineKeyboardButtonTypeUrl()), new TdApi.InlineKeyboardButton("https://telegram.org?2", new TdApi.InlineKeyboardButtonTypeUrl()), new TdApi.InlineKeyboardButton("https://telegram.org?3", new TdApi.InlineKeyboardButtonTypeUrl())}; + TdApi.InlineKeyboardButton[] row = { + new TdApi.InlineKeyboardButton("https://telegram.org?1", 0, null, new TdApi.InlineKeyboardButtonTypeUrl()), + new TdApi.InlineKeyboardButton("https://telegram.org?2", 0, null, new TdApi.InlineKeyboardButtonTypeUrl()), + new TdApi.InlineKeyboardButton("https://telegram.org?3", 0, null, new TdApi.InlineKeyboardButtonTypeUrl())}; TdApi.ReplyMarkup replyMarkup = new TdApi.ReplyMarkupInlineKeyboard(new TdApi.InlineKeyboardButton[][]{row, row, row}); TdApi.InputMessageContent content = new TdApi.InputMessageText(new TdApi.FormattedText(message, null), null, true); |
