Created
May 1, 2018 14:30
-
-
Save igordcsouza/ce8edac583a1459a41dba3ddba1e8d7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elsif message.text.include? "test" | |
answers = Telegram::Bot::Types::ReplyKeyboardMarkup | |
.new(keyboard: [%w(/foo /bar)], one_time_keyboard: false) | |
bot.api.send_message(chat_id: message.chat.id, text: "How can i help you?", reply_markup: answers | |
end | |
# https://simpleror.wordpress.com/2009/03/15/q-q-w-w-x-r-s/ | |
# https://core.telegram.org/bots/api#keyboardbutton |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment