1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-07 11:25:52 +03:00

Fixed doubled instrumentation for reply_with

Этот коммит содержится в:
Max Melentiev
2016-06-02 21:19:27 +03:00
родитель 0205891985
Коммит 9ba5a817cd

Просмотреть файл

@@ -35,10 +35,8 @@ module Telegram
end end
end end
%i(respond_with reply_with).each do |method| def respond_with(type, *)
define_method(method) do |type, *args| Instrumentation.instrument(:respond_with, type: type) { super }
Instrumentation.instrument(:respond_with, type: type) { super(type, *args) }
end
end end
%i(answer_callback_query answer_inline_query).each do |type| %i(answer_callback_query answer_inline_query).each do |type|