Skip to content

Commit

Permalink
Fix Telegram token
Browse files Browse the repository at this point in the history
  • Loading branch information
amree committed Aug 13, 2024
1 parent 0d137ee commit 980ba9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/workers/telegram_notifier_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def perform(message)
bot_token = ENV["TELEGRAM_BOT_TOKEN"]
notification_chat_id = ENV["TELEGRAM_NOTIFICATION_CHAT_ID"]

Telegram::Bot::Client.run(Rails.application.credentials[:telegram][:bot_token]) do |bot|
bot.api.send_message(chat_id: Rails.application.credentials[:telegram][:notification_chat_id], text: message)
Telegram::Bot::Client.run(bot_token) do |bot|
bot.api.send_message(chat_id: notification_chat_id, text: message)
end
end
end

0 comments on commit 980ba9d

Please sign in to comment.