examples/bot.rb in telegram-bot-ruby-0.2.5 vs examples/bot.rb in telegram-bot-ruby-0.2.6

- old
+ new

@@ -5,12 +5,12 @@ Telegram::Bot::Client.run(token) do |bot| bot.listen do |message| case message.text when '/start' - bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.username}!") + bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.first_name}!") when '/end' - bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.username}!") + bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.first_name}!") else bot.api.sendMessage(chat_id: message.chat.id, text: "I don't understand you :(") end end end