atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.35k stars 218 forks source link

LXR.rb #206

Closed imhacker472 closed 1 year ago

imhacker472 commented 5 years ago

gem install telegram-bot-ruby require t.me/@LXR_Verifybot token = 727038858:AAEhQBZIKBmNf88HW2o47Rl0TVC8n19p_Co Telegram::Bot::Client.run(token) do |bot| bot.listen do |message| case message.text when 'Hello' bot.api.send_message(chat_id: message.chat.id, text: "Hello, #{message.from.first_name}") when 'How are you ?' bot.api.send_message(chat_id: message.chat.id, text: "I'm ok. Thanks") when 'Do you know Maria Yui Ozawa Hatano?' bot.api.send_message(chat_id: message.chat.id, text: "Sure. I love her. I alway watch her film") end end end