From 7fbfd50d1069c4a41ce1d227d7912cf4fc6cee6c Mon Sep 17 00:00:00 2001 From: Teal <git@teal.is> Date: Mon, 27 May 2024 15:49:41 +0200 Subject: [PATCH] target teal for dev env --- app/jobs/telegram_group_chat_notification_job.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/jobs/telegram_group_chat_notification_job.rb b/app/jobs/telegram_group_chat_notification_job.rb index 2000abf..87bd0fd 100644 --- a/app/jobs/telegram_group_chat_notification_job.rb +++ b/app/jobs/telegram_group_chat_notification_job.rb @@ -8,6 +8,7 @@ class TelegramGroupChatNotificationJob < NotificationJob return unless channel&.data token = channel.data['token'] return unless token + args[:target] = "2192297" if Rails.env.development? Telegram::Bot::Client.run(token) do |bot| bot.api.send_message(chat_id: args[:target], text: args[:text], parse_mode: args[:parse_mode]) end -- GitLab