lib/telegram/bot/middleware.rb in telegram-bot-0.15.7 vs lib/telegram/bot/middleware.rb in telegram-bot-0.16.0
- old
+ new
@@ -14,10 +14,10 @@
end
def call(env)
request = ActionDispatch::Request.new(env)
update = request.request_parameters
- controller.dispatch(bot, update)
+ controller.dispatch(bot, update, request)
[200, {}, ['']]
end
def inspect
"#<#{self.class.name}(#{controller.try!(:name)})>"