class TelegramBot::Message
Public Instance Methods
get_command_for(bot)
click to toggle source
# File lib/telegram_bot/message.rb, line 20 def get_command_for(bot) text && text.sub(Regexp.new("@#{bot.identity.username}($|\s|\.|,)", Regexp::IGNORECASE), '').strip end
reply() { |reply| ... }
click to toggle source
# File lib/telegram_bot/message.rb, line 14 def reply(&block) reply = OutMessage.new(chat: chat) yield reply if block_given? reply end