From be866aaf2be0ca2b3b5807b0583870bc06af6526 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 28 Oct 2017 11:44:37 +0300 Subject: api: inline Telegram signup url --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'juick-api/src/main/java/com') diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java index 09703ea0..b9154424 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -155,13 +155,10 @@ public class TelegramBotManager extends TextWebSocketHandler { public void telegramSignupNotify(Long telegramId, String hash) { bot.execute(new SendMessage(telegramId, - "You are subscribed to all Juick messages. " + - "Create or link an existing Juick account to get your subscriptions and ability to post messages").replyMarkup( - new InlineKeyboardMarkup( - new InlineKeyboardButton[]{ - new InlineKeyboardButton("SIGNUP").url("http://juick.com/signup?type=durov&hash=" + - hash) - })), new Callback() { + String.format("You are subscribed to all Juick messages. " + + "[Create or link](http://juick.com/signup?type=durov&hash=%s) " + + "an existing Juick account to get your subscriptions and ability to post messages", hash)) + .parseMode(ParseMode.Markdown), new Callback() { @Override public void onResponse(SendMessage request, SendResponse response) { logger.info("got response: {}", response.message()); -- cgit v1.2.3