module EurekaBot::Tg::Controller::RepliesConcern
Public Instance Methods
global_reply_markup()
click to toggle source
# File lib/eureka_bot/tg/controller/concerns/replies_concern.rb, line 17 def global_reply_markup reply_markup resize_keyboard: true, one_time_keyboard: false do [ ['Get Tasks', 'Account', 'Help'] ] end end
reply_markup(type: :classic, **options, &block)
click to toggle source
# File lib/eureka_bot/tg/controller/concerns/replies_concern.rb, line 4 def reply_markup(type: :classic, **options, &block) markup = case type when :inline InlineMarkup.new(self, options) when :classic ClassicMarkup.new(self, options) else raise end markup.run(&block) markup end