Skip to content

Commit

Permalink
same for handle_message (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
vizvamitra authored Jun 2, 2019
1 parent 0dc622f commit 9b90c18
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/commands/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ def call(message)
handle_call(message)
when Telegram::Bot::Types::CallbackQuery
args = JSON.parse(message.data)['args']
begin
handle_callback(message, args)
rescue Telegram::Bot::Exceptions::ResponseError => e
logger.error("Error: #{e.message}\n#{e.backtrace.join("\n")}")
end
handle_callback(message, args)
end
rescue Telegram::Bot::Exceptions::ResponseError => e
logger.error("Error: #{e.message}\n#{e.backtrace.join("\n")}")
end

private
Expand Down

0 comments on commit 9b90c18

Please sign in to comment.