module TelegramBot::ShorthandMethods

Public Instance Methods

forward_message(to) click to toggle source
# File lib/telegram_bot/shorthand_methods.rb, line 10
def forward_message(to)
  bot.forward_message(message, to)
end
reply(text, *args, to: message.chat, **opts) click to toggle source
# File lib/telegram_bot/shorthand_methods.rb, line 6
def reply(text, *args, to: message.chat, **opts)
  bot.send_message(to, text, *args, reply_to: message, **opts)
end
send_chat_action(action) click to toggle source
# File lib/telegram_bot/shorthand_methods.rb, line 14
def send_chat_action(action)
  bot.send_chat_action(message.chat, action)
end
send_message(text, *args, to: message.chat, **opts) click to toggle source
# File lib/telegram_bot/shorthand_methods.rb, line 2
def send_message(text, *args, to: message.chat, **opts)
  bot.send_message(to, text, *args, **opts)
end