lib/telegram/bot/updates_controller/instrumentation.rb in telegram-bot-0.7.4 vs lib/telegram/bot/updates_controller/instrumentation.rb in telegram-bot-0.8.0

- old
+ new

@@ -33,16 +33,16 @@ append_info_to_payload(payload) end end end - def reply_with(type, *) - Instrumentation.instrument(:reply_with, type: type) { super } + def respond_with(type, *) + Instrumentation.instrument(:respond_with, type: type) { super } end %i(answer_callback_query answer_inline_query).each do |type| define_method(type) do |*args| - Instrumentation.instrument(:reply_with, type: type) { super(*args) } + Instrumentation.instrument(:respond_with, type: type) { super(*args) } end end private