aboutsummaryrefslogtreecommitdiff
path: root/juick-api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-28 11:44:37 +0300
committerGravatar Vitaly Takmazov2017-10-28 11:44:37 +0300
commitbe866aaf2be0ca2b3b5807b0583870bc06af6526 (patch)
tree7971551d68617792e819d69f85ff03108b15607a /juick-api
parent31a4570cbd137ebe0ee3e1f08e1dcf8545eef83f (diff)
api: inline Telegram signup url
Diffstat (limited to 'juick-api')
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java11
1 files changed, 4 insertions, 7 deletions
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<SendMessage, SendResponse>() {
+ 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<SendMessage, SendResponse>() {
@Override
public void onResponse(SendMessage request, SendResponse response) {
logger.info("got response: {}", response.message());