Sha256: 19ed61e5c95c1da0ce2cb806124f1031eab68891e02f0e56d23bd42cfc8e00ec

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

module TelegramBot::ShorthandMethods
  def send_message(text, *args, to: message.chat)
    bot.send_message(to, text, *args)
  end

  def reply(text, *args, to: message.chat)
    bot.send_message(to, text, *args, reply_to: message)
  end

  def forward_message(to)
    bot.forward_message(message, to)
  end

  def send_chat_action(action)
    bot.send_chat_action(message.chat, action)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
telegram_bot_ruby-0.1.6 lib/telegram_bot/shorthand_methods.rb
telegram_bot_ruby-0.1.5 lib/telegram_bot/shorthand_methods.rb
telegram_bot_ruby-0.1.3 lib/telegram_bot/shorthand_methods.rb
telegram_bot_ruby-0.1.1 lib/telegram_bot/shorthand_methods.rb